The information in this article applies to:
SYMPTOMSIf you create an ATL service exposing a COM object, with a space in the name, such as "A Service," you may see multiple instances of the executable. If you do not have the HKCR\CLSID\{CLSID}\LocalServer32 key for the COM object, then you may get an HRESULT of 0x80040154 (class not registered). CAUSE
This is a bug in the ATL wizard-generated code when you create an ATL NT-
service project with an embedded space in the service name. For example, if
you create "A Service," the wizard generated code installs "AService" as
the service name with the Service Controller Manager database, but
registers "A Service" under HKCR\AppID\{APPID}\LocalService.
RESOLUTIONIn the resource editor, modify the string resource "IDS_SERVICENAME" to put the spaces back into the service name. STATUS
Microsoft 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.
© Microsoft Corporation 1998, All Rights Reserved. Additional query words: kbatliss kbatlservice
Keywords : kbwizard kbActiveX kbATL200bug kbATL210bug kbCOMt kbRegistry kbVC420bug kbVC500bug kbVC600fix kbATL300fix kbGrpMFCATL |
Last Reviewed: November 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |