ActiveX Controller Wizard Does Not Recognize 64-bit Type Libraries in LabWindows™/CVI

Updated Jul 25, 2023

Reported In

Software

  • LabWindows/CVI

Issue Details

I am developing an ActiveX Controller and I want to use the LabWindows/CVI ActiveX Controller Wizard to generate the header, fp, and DLL files that wrap the COM interface. When I try to use the ActiveX Controller Wizard to create an ActiveX Controller. I get an error: "The Type Library is not intended for use on Win 32". The error message should look similar to the one below:
 
error.png

Can I use this feature with 64-bit type libraries?

Solution

Since LabWindows/CVI is a 32-bit environment and the type library is contained in a 64-binary, the wizard will not be able to load it. The workaround is to load the stand-alone library in LabWindows/CVI. You can create a wrapper DLL and then import the DLL into LabWindows/CVI as an fp.