LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Server fails to register with external compiler (Visual Studio)

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?

0 Kudos
Message 1 of 1
(852 Views)