10-09-2008 07:36 AM
If got a third party source code that I have to implement in CVI in a GUI.
Now I have the problem with the type definition " typedef unsigned long long UINT64; " the error "fm_demod.h"(116,14) Invalid use of 'long'.
How can I handle this.
10-09-2008 11:19 AM
Support for the long long data type was added in CVI 8.5, so presumably you're using an older version. The (equivalent) __int64 datatype has been around much longer, so you can try replacing unsigned long long with unsigned __int64.
10-09-2008 11:22 AM
As long as you are using CVI 7.0 or latter you can change the type from 'unsigned long long' to 'unsigned __int64' to get it to compile. Additionally CVI 8.5 allows the 'unsigned long long' type as a valid type. If you are using an earlier version of CVI than 7.0, you must upgrade to get 64-bit integer support.
10-10-2008 01:30 AM
Thank you for your help
11-02-2011 09:38 PM
i have met the same problem.the souce code i got from third party,so i cant modify it becuase many file are relative to this file.
the third party file define:
typedef unsigned long uint32_t;
and the <stdint.h> define:
typedef unsigned int uint32_t;
so the error is " Redeclaration of 'uint32_t'." when i compile the source file,
So how should i do if i cant modify the souce code from third party.
the version of CVI is 2010
11-03-2011 12:10 PM
A unsigned long and an unsigned int are the same thing in CVI. You could modify the header for the 3rd party DLL to use unsigned int.