Hello
is _CVI_FUNC typedef'ed as _VI_FUNC ? I think what VC might have been doing is typedef'fing _CVI_FUNC as ViStatus, since it might not has a typedef for it. Im not sure about the vendor file, but if the vendor was trying to use standard visa types _CVI_FUNC doesnt seem to be one of them
Here are some of the CVI function prtotypes
#define CVICDECL __cdecl
/* CVICALLBACK is used for typdefs for ptrs to functions. For example:
* typedef void (CVICALLBACK * MenuDimmerCallbackPtr)(int menuBar, int panel);
*/
#define CVICALLBACK CVICDECL
/* for function prototypes */
#define CVIFUNC __stdcall
#define CVIFUNC_C CVICDECL
#define CVIANSI CVICDECL
and you have _VI_FUNC shown correctl
y. So you might be able to get the project to work as is if you add
#define _CVI_FUNC __stdcall
before the function declaration or perhaps in the project preprocessor definition.
I hope this helps
Bilal Durrani
NI
Bilal Durrani
NI