Professional Documents
Culture Documents
How Do I Register Type Libraries, ActiveX Controls, and ActiveX Servers - National Instruments
How Do I Register Type Libraries, ActiveX Controls, and ActiveX Servers - National Instruments
- National Instruments
http://digital.ni.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A?OpenDocument
254 ratings:
4.31 out of 5
ActiveX Controls ActiveX controls are files with a .OCX extension. These controls come in 16-bit and 32-bit forms, with 32-bit being the most common. To register an ActiveX control, you should use regsvr32.exe as follows: 1. Select Start Run. 2. Type the following in the dialog box that appears: regsvr32 "<Full path of .OCX file>" where "<Full path of .OCX file>" is the location of your ActiveX control including the quotes.
Note: If you have a 16-bit control, you should run regsvr instead of regsvr32. If your ActiveX control is registered incorrectly, you must first unregister it and then register it again. You will get a dialog box prompting you that your control has been unregistered or registered successfully. To unregister a control, use the switch /u (regsvr32 /u "<Full path of .OCX file>").
ActiveX Servers ActiveX servers can be in the form of dynamic link libraries (.DLLs) and executables (.EXEs). DLLs are registered like an ActiveX control with regsvr32 as in the previous section. However, when registering an .EXE, you must use call the .EXE file with the switch /RegServer as follows:
1. Select Start Run. 2. Type the following in the dialog box that appears: <Full path of the .EXE file> /RegServer where <Full path of the EXE file> is the location of your EXE server (C:\TestStand \Bin\REngine.exe /RegServer).
To unregister an EXE ActiveX Server use the switch /UnRegServer (C:\TestStand \Bin\REngine.exe /UnRegServer). Note : If you find that you are dealing extensively with type libraries, ActiveX controls, and ActiveX servers, you may find the utility linked below useful. It is a very simple utility that allows you to quickly register and unregister type libraries, ActiveX controls, and ActiveX servers. The application is distributed freely by the Common Controls Replacement Project (CCRP), and the readme file included with the application explains how to use it. Related Links: Common Controls Replacement Project KnowledgeBase 2XDAB1SJ. Why Does regsvr32.exe Register my .ocx File From the Incorrect Directory? KnowledgeBase 417EP44G: How Do I Use an OCX File in LabVIEW? Attachments:
1 of 2
1/13/2012 2:45 PM
How Do I Register Type Libraries, ActiveX Controls, and ActiveX Servers? - National Instruments
http://digital.ni.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A?OpenDocument
2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
2 of 2
1/13/2012 2:45 PM