I have built and registered a DCOM App,then I could find my DCOMApp in "DCOM Config" of "DCOMCNFG.exe".
Here is the problem:
I deploy my DCOMApp on WindowsXP(with out config anything just register DCOM),and test client visit from Windows7 on another computer.In this situation, my DCOMApp works fine on WindowsXP.
But I deploy my DCOMApp on Windows7(Ultimate 7600), and test client visit from WindowsXP, I always get a
HRESULT=0x80070005
error after calling
CoCreateInstanceEx
.
I use excactly the same Test Client and DCOM Server Exe, just switch there deploying position.
I have tried some tips from google, such as:
http://www.computerperformance.co.uk/Logon/code/code_80070005.htm
http://www.opcactivex.com/Support/Tutorials/DCOM_Tutorial_-_Configuring_th/dcom_tutorial_-_configuring_th.html
But the problem is still there.
What shuold I do to fix this ?
PS: My Test Client
CoCreateInstanceEx
call:
CoInitialize(NULL);
HRESULT hr=S_OK;
MULTI_QI mqi[]={{&IID_ITestGetOsVersionV2,NULL,0}};
COSERVERINFO SrvInfo={0};
SrvInfo.pwszName=L"192.168.0.1";
hr=CoCreateInstanceEx(CLSID_TestGetOsVersionV2,NULL,CLSCTX_ALL,&SrvInfo,
sizeof(mqi)/sizeof(mqi[0]),mqi);
if (SUCCEEDED(hr)){.....................}