How To Programmatically Register and Unregister .OCX Files (173091)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q173091 SUMMARY
This article describes how to programmatically register and unregister
ActiveX controls (.OCXs).
Microsoft Visual Basic ships with several ActiveX controls (.OCX files).
These files are automatically registered by the Visual Basic setup program
during installation. Developers often desire to register or unregister
these and/or their own controls at will. This can be accomplished by using
a tool such as RegSvr32.EXE or it can be done programmatically through
Visual Basic code.
The ActiveX control framework supports the DllRegisterServer and
DllUnregisterServer entry points. These entry points can be declared as
functions in your Visual Basic code and then called to register and
unregister the ActiveX control.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB173091 |
---|
|