How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?Primary Software: Measurement Studio>>Visual Basic SupportPrimary Software Version: 3.0.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: How do I manually register type libraries ( ), ActiveX controls (), and ActiveX servers?Solution: Type Libraries
ActiveX Controls ActiveX controls are files with a .ocx extension. These controls come in 16-bit as well as 32-bit forms, with 32-bit being the most predominant. To register an ActiveX control, you can use as follows:
regsvr instead of regsvr32. If your ActiveX control is registered incorrectly, you must first unregister it and then register it again. In both cases, 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 (i.e., regsvr32 /u <Full path of .ocx file>). Note: For a complete listing of the switches available, just type regsvr32 from the Start » Run dialog box. ActiveX Servers ActiveX servers can be in the form of both DLLs and executables (EXEs). DLLs can be registered similar to an ActiveX control (e.g., regsvr32 C:\Teststand\BIN\TEAPI.DLL). However, when registering an EXE, you must use the switch as follows:
/UnRegServer (e.g., C:\TestStand\Bin\REngine.exe /UnRegServer). RegServer and UnRegServer are switches whose functionality is built into the executable.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. Also refer to KB 2XDAB1SJ for more inofrmation about .ocx files (linked below). Related Links: Common Controls Replacement Project KnowledgeBase 2XDAB1SJ. Why Does regsvr32.exe Register my .ocx File From the Incorrect Directory? Attachments:
Report Date: 01/12/1999 Last Updated: 10/02/2009 Document ID: 1HBAMMSR |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
