LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

register cvi as activex server

I created an ActiveX Controller for the CVI application so I could open and build projects through code. When I create a distribution kit and install it on another computer (also has CVI installed) it gives an error "Class not registered". Do i need to do anything special to register CVI as an ActiveX server on the target computer? Also, I noticed when I executed the project from the CVI environment, I have no problems. Only when I try to run the application outside of CVI.

Chris
0 Kudos
Message 1 of 4
(3,244 Views)
Hello

When making a distribution kit with CVI 6, make sure you check the box near the botton that says "Register Files as Activex servers", this way the installer should register the server for you automatically. Since its a server, you need to register it on the machine you intend to use it on.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(3,244 Views)
Yes I understand that. The problem is, that CVI is itself an ActiveX server. It should register itself when it is installed. My application is trying to open the CVI application, load a project, build the project and close the application. As soon as I try to call _NewApp(), I get an "Class not registered" error. Which says to me that CVI has not been registered yet. My application is not an ActiveX server, so I did not check any boxes to register any files. My application's dist. kit doesn't include the CVI executable of dll. I'm assuming LabWindows CVI is already installed.
0 Kudos
Message 3 of 4
(3,244 Views)
Whoops
sorry

See if you have the following registry key

HKEY_CLASSES_ROOT\CLSID\{5AB151E3-414A-11D0-A62C-0020AF16F78E}

This is what identifies the CVI activex server in the registry. The installer should have registered CVI for you. If you dont have this registry key, try running the repair on CVI from add/remove programs.

Let me know if I missed anything

Thanks

Bilal
Bilal Durrani
NI
0 Kudos
Message 4 of 4
(3,244 Views)