Try using the system supplied DllSurrogate as the out-of-process server to directly host your 32-bit COM object without the wrapper.
Help with COM Class not registered Exception HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)
Nishanth Nellutla
1
Reputation point
Hi
In our current application, we have a 32-bit COM server and we are trying to call the APIs from 64-bit Outlook Addin.
We have written a Wrapper COM class which loads into a separate process and calls the 32-bit COM server APIs.
There is one COM class which implements IMoniker and couple of other Interfaces.
When we try to query for one of the interfaces implemented in that class from the 64 bit process using the IMoniker's BindToStorage() call, we are getting Class not registered Exception.
Any ideas to overcome this are much appreciated.
Thanks
Nishanth