I have generated a dll using microsoft visual studio c++, which works when called from another c++ program. However, when I call it from Measurement Studio, it fails. The code is based on an example from Logitech to drive their web cameras, but the problem occurs before any calls to Logitech-specific routines.
The problem occurs when I call coinitialize(NULL), eg
if (!CoInitialize(NULL)==S_OK) { return 10; }
I can call simple C++ dlls from LabWindows, and I can get dummy values returned from this dll if I dont call CoInitialize, AtlAxWinInit() etc. I am using the dllexport format as per your examples.
Is this some problem with the concurrency model of the DLL, or something else?
Thanks,
Ed Roberts
Australian National Un
iversity