The information in this article applies to:
SYMPTOMSATL servers do not remove type library registry entries when unregistered. CAUSEThere is no code to remove type library registry entries. RESOLUTIONAdd the code below to each type of ATL server to make sure registry entries are removed. In-Process ServerFor an In-Process server, add the call UnRegisterTypeLib() to DllUnregisterServer():
Local ServerFor a local server, add the call to UnRegisterTypeLib() to WinMain():
ServiceFor a service, add the call to UnRegisterTypeLib() to WinMain():
NOTE: UnRegisterTypeLib() is exported only by the newer version of Oleaut32.dll shipped with Windows NT 4.0, Windows 95 with DCOM, and Internet Explorer 3.x. NOTE: Make sure the LCID and major and minor version numbers passed as parameters to UnRegisterTypeLib() are the same as that specified in the project .idl file. No lcid attribute in the .idl file implies LOCALE_NEUTRAL. STATUS
This problem was corrected in ATL version 3.0, which shipped with Microsoft
Visual C++ version 6.0.
© Microsoft Corporation 1997, All Rights Reserved. Additional query words: kbRegistry kbServer kbATL200 kbATL210 kbVC500 kbDSupport kbDSD kbatl300fix kbvc600fix
Keywords : kbcode kbActiveX kbATL200bug kbATL210bug kbCOMt kbRegistry kbVC500bug kbVC600fix kbATL300fix kbGrpMFCATL |
Last Reviewed: November 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |