HOWTO: Delete and Re-Register the TypeLib GUID for an Active X ControlID: Q217180
|
IMPORTANT: This article contains information about editing the registry.
Before you edit the registry, make sure you understand how to restore it if
a problem occurs. For information about how to do this, view the "Restoring
the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help
topic in Regedt32.exe.
This article demonstrates how to delete and re-register the TypeLib GUID of an Active X Control. This procedure should be performed whenever you install and remove different Visual Basic versions so that your Visual Basic program can use the correct ActiveX control Type Library information. You may also wish to implement this procedure if you get the following error message:
This article assumes that you are familiar with editing the registry using the Registry Editor (Regedt32.exe or Regedit.exe) and with using the Run dialog.<ActiveX Control File Name> Could Not Be Loaded - Adding component to project
WARNING: Using Registry Editor incorrectly can cause serious problems that
may require you to reinstall your operating system. Microsoft cannot
guarantee that problems resulting from the incorrect use of Registry Editor
can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys And
Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete
Information in the Registry" and "Edit Registry Data" Help topics in
Regedt32.exe. Note that you should back up the registry before you edit it.
If you are running Windows NT, you should also update your Emergency
Repair Disk (ERD).
To remove the Typelib GUID from the registry, you need to find the appropriate TypeLib GUID for your ActiveX control in the HKEY_CLASSES_ROOT\TypeLib folder. Once you find the GUID, delete the GUID and then register the control again using REGSVR32.EXE.
The following section demonstrates how to delete and re-register the ActiveX Control Microsoft Windows Common Controls 5.0 (comctl32.ocx).
Regsvr32 <ActiveX Control File Name>RegSvr32 displays a message box indicating that the registration process was successful.
Regsvr32 comctl32.ocxThe RegSvr32 message box is displayed with the following message:
DllRegisterServer in comctl32.ocx succeeded.Click OK to close the RegSvr32 message box. The registration process is complete. If you do not see the message above, make sure that the ActiveX control file exists in your system directory and then run this step again.
Additional query words:
Keywords : kbActiveX kbRegistry kbVBp kbVBp500 kbVBp600 kbGrpVB
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 9, 1999