How can I use the fucntion CoGetClassObject in x64
Posted
by fishbein
on Stack Overflow
See other posts from Stack Overflow
or by fishbein
Published on 2010-04-28T07:49:49Z
Indexed on
2010/04/28
7:53 UTC
Read the original article
Hit count: 194
x64
I have COM DLL that compiled in x32(the server side). I registered it and tried to use the function CoGetClassObject with client that works in x32 for getting the IClassFactory.
Hr = CoGetClassObject(CLSID_IOrbCom, CLSCTX_INPROC_SERVER, 0 , IDD_IClassFactory, (LPVOID*)&ClassFactory)
the result with client x32 was fine and everything works well.
But when I tried to use the CoGetClassObject in x64 client I received failed error "Class not registered".
P.S. Restriction: - I can only compiled the COM server with x32. - My OS is XP 64bit.
© Stack Overflow or respective owner