01-18-2008 09:36 AM
01-22-2008 03:56 AM
01-23-2008 07:06 AM
01-23-2008 10:00 AM
01-23-2008 11:52 AM
01-24-2008 02:54 AM
01-24-2008 04:08 AM
Public dlls should use __stdcall linkage, which you can also define as either WINAPI or APIENTRY, as in your SiUSBXp_stdcaal_ver.h header file. Is this how the original file looked? In my CVI7.0, I find I have to modify third party headers to remove the __declspec(dllimport) statement, as follows:
// Standard part of third party header, suitable for MSVC applications:
#ifdef SI_USB_XP_EXPORTS
#define SI_USB_XP_API __declspec(dllexport)
#else
#define SI_USB_XP_API __declspec(dllimport)
#endif
// For CVI use, modified to:
#ifdef SI_USB_XP_EXPORTS
#define SI_USB_XP_API __declspec(dllexport)
#else
#define SI_USB_XP_API
#endif
I have to confess I have not spent too much time investigating this: I found that it worked for me in the past when I had a problem so I always use it now. Worth a try.
JR
01-24-2008 09:46 AM
01-24-2008 04:45 PM