I'm refering to this thread
How do I install both 32-bit and 64-bit versions of a COM DLL and "auto-select"?
we have exactly the same situation. A namespace extension Dll 32bit and 64bit with same CLSID App ID out of the same project. Now registering those two Dlls works flawlessly. Unregistering brings up some errors. The first unregister works but the second fails. Because I think windows (?) thinks the Dll has already been deregistered...
Do the two Dlls need different CLSIDs and/or App IDs???
Kind regards, Michael
EDIT: here's what the DllUnregisterServer does:
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;
}