10-10-2008 08:54 AM
I created a distribution of a LabWindowsCVI application following the instructions in the help file, and installed it on another computer. When I try to run it I get the following error message:
Error in call to LoadPanel.
Parent Panel Handle: 0
UIR File Name: 3D Panel.uir
Panel Resource ID: 1
Error Code: -145
ActiveX control not registered on this computer.
The panel contains a 3DGraphCtrl from the 3DGraphCtrl.fp instruments, but I don't know if that is ActiveX control it is referring to that is not registered. How do I know what ActiveX control it is referring to? I looked in the directory where the executable was installed and there are no ocx files there to register. Shouldn't the installation software in the distribution kit automatically load and register all the DLLs and ActiveX controls in the application? I didn't see anything during the creation of the distribution kit about installing or registering ActiveX controls.
10-10-2008 02:43 PM
Hello Roy,
Yeah, that error means that the ActiveX control is not installed, or at least not registered, on the target computer.
The CVI distribution tool cannot automatically detect that your application is using certain ActiveX controls, and so it does not automatically include them in your distribution. You must add them yourself in the Drivers & Components tab of the Edit Installer dialog. For generic ActiveX controls, you would probably have to have a merge module (.msm) that you would add via the Add Merge Module button. But since the control you need is one that CVI knows about, you don't have to go looking for a merge module. There should be an item in the main list of that tab, called 3D Graph Control Support. Just make sure that you have it selected and then rebuild the installer.
Luis
10-10-2008 04:51 PM
If 3DGraphCtrl.fp is added to the project that you're distributing, the 3D Graph Control Support item ought to be checked for you automatically and included in your distribution.
Mert A.
National Instruments