The information in this article applies to:
SYMPTOMS
When you unregister an ATL ActiveX control using "REGSVR32.EXE /u," not all
registry keys are removed. Specifically, the following subkeys under
HKEY_CLASSES_ROOT\CLSID\{<guid>} are not removed:
CAUSEThe .rgs (Registrar Script) file created by the ATL Object Wizard has a duplicate entry for the Programmable subkey. When the unregistration code encounters the duplicate, it aborts and fails to remove any other keys that come after the duplicate entry. RESOLUTION
Open the .rgs file and remove the duplicate entry.
Sample Code
To avoid this problem in future .rgs files generated by the wizard, remove
the same duplicate line from the following files. The wizard uses these
files when creating the .rgs files:
C:\Program Files\DevStudio\SharedIDE\Template\atl\Control.rgs STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 6.0 for Windows. MORE INFORMATIONEntries under HKEY_CLASSES_ROOT\Interface and HKEY_CLASSES_ROOT\TypeLib are also not removed. You must add a call to UnregisterTypeLib() to DllUnregisterServer. This is documented in the following Knowledge Base article: Q179688 PRB: ATL Servers Do Not Unregister Their Type Library(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Samson Tanrena, Microsoft Corporation © Microsoft Corporation 1998, All Rights Reserved. Additional query words: unregister
Keywords : kbcode kbwizard kbActiveX kbATL200bug kbATL210bug kbCOMt kbCtrlCreate kbRegistry kbVC420bug kbVC500bug kbVC600fix kbATL300fix kbGrpMFCATL |
Last Reviewed: November 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |