The information in this article applies to:
SYMPTOMSWhen you register an ATL server, you might get error 0x80040154 (Class not registered). For DLLs, REGSVR32.exe returns this error. For .exes, the call to _Module::RegisterServer(CComModule::RegisterServer) in _tWinMain() returns this error. CAUSEATL.dll is not installed, or it is not registered. RESOLUTION
Install ATL.dll in the Windows\System or Winnt\System32 directory and register it using REGSVR32.exe. There are UNICODE and ANSI versions of ATL.dll. Install the appropriate version on the target operating system (that is, UNICODE for Windows NT and ANSI for Windows 95 or Windows 98).
STATUSThis behavior is by design. MORE INFORMATIONATL has a registrar component that is used during registration. This component resides in ATL.dll. During registration, the error 0x80040154 is returned from CoCreateInstance() when it fails to create the registrar component. Location of ATL.DLL in the VC 5.0 CD:OS\SYSTEM (UNICODE version)OS\SYSTEM\ANSI (ANSI version) Location of ATL.DLL in the VC 6.0 CD:DevStudio\VC\Redist (UNICODE version)DevStudio\VC\Redist\Ansi (ANSI version) REFERENCES
MSDN Library: Registrar, ATL Registry Component; Regsvr32, using Additional query words: REGDB_E_CLASSNOTREG
Keywords : kbActiveX kbATL200 kbATL210 kbCOMt kbCtrlCreate kbInprocSvr kbRegistry kbVC500 kbVC600 kbATL300 kbfaq |
|
Last Reviewed: January 27, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |