Easy OCX and DLL Registering
Updated May 9, 2000
If you use ActiveX controls or COM DLL's in programming you undoubtedly have had a need
to register or unregister a control at some time. The "normal" way to do it is open up
a command prompt and type out the "regsvr32 c:\windows\system\........ocx".
While not a big deal to do, a little registry edit can save some time and take advantage of
Explorers' context menus.
Just right-click on an ocx or dll file and you will be presented with two options - Register and Unregister.
Just open Notepad and copy everything in the scrolling text box below and paste it into Notepad. Save the file with a ".reg" extension. Double-click on the file in Explorer to merge it into the Registry. As with any registry editing the usual disclaimers and precautions apply......
Backup your registry first!
This assumes Regsvr32 is in the "c:\windows\system\" folder. If in another location, change the path in the .reg file before merging.
This works on Windows 95, 98, and NT. Not tested on 2000.
Back to Programming Tips & Tricks
Back to Rick's Home Page
Copyright 1997-2000, Richard A. Bish. All Rights Reserved.