|
-
May 2nd, 2012, 07:59 AM
#1
Problem when unregistering DLLs using regsvr32 32bit and 64bit parallel
Hi,
I have developed a namespace extension. Now for 64bit OS we need to register both DLLs 32 bit and 64 bit parallel. Registering both DLLs using regsvr32 works perfect and everything is fine.
But when it's coming to unregistering as soon as one DLL is registered the second DLL won't unregister, telling that DLLUnregisterServer failed with failer code 0x8002801c.
My assumption is that there's a problem with CLSIDs maybe? Because as soon as one DLL is unregistered DLLUnregisterServer thinks that the DLL is already unregistered.
But shouldn't have every DLL have it's own registry entry due to the registry reflection???
I hope you can help me out.
here is the content of my DllUnregisterServer:
Code:
STDAPI DllUnregisterServer(void)
{
_AtlModule.UpdateRegistryAppId(FALSE);
HRESULT hRes2 = _AtlModule.UnregisterServer(TRUE);
if (hRes2 != S_OK)
return hRes2;
AFX_MANAGE_STATE(_afxModuleAddrThis);
if (!COleObjectFactoryEx::UpdateRegistryAll(FALSE))
return ResultFromScode(SELFREG_E_CLASS);
return NOERROR;
}
Kind regards,
Michael
Last edited by chaos2oo2; May 2nd, 2012 at 10:02 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|