Registering ATL/COM DLL object - fails with return code 0x80020009
Posted on 2003-12-08
I have an ATL COM object, which also uses MFC. I am building in VC++ 6, but when I register my object with regsvr32.exe, it fails with a return code of 0x80020009. However, if I remove all OBJECT_ENTRY() items from the object map, all works fine. This simply confirms something is corrupt or missing in when the object is registered.
I have verified that all dependencies are found and linked correctly.
A breakpoint is set in DllRegisterServer, which simply calls:
However, I am unsure what I am trying to find to resolve this.
I am including the .rgs files in the resource for each class, and have the DECLARE_REGISTRY_RESOURCEID() macro in place in the header file.
Any pointers appreciated to help track this down. I am skilled in MFC more than ATL, though I have written several ATL and COM objects over the years.