My application is building in Visual Studio and is fully functional, outside of the ActiveX Server/COM API component.
When I build with the CVI compiler, The ActiveX Server correctly registers (/RegServer) and the COM Objects/Functions are available for automation.
When I build with Visual Studio, The ActiveX Server does not register. I can see that CA_InitActiveXServer in cviauto.h is returning with an "Unknown Error" in its string buffer. Not very helpful 😕
I checked, and I am running InitCVIRTE (hInstance, 0, 0) before the call to CA_InitActiveXServer, and I am linking against cviauto.lib
My best guess is that there I need to enable something or add something to tell visual studio to compile the idl into a the executable, but I'm not sure how to accomplish that. Any other ideas?