
why Can\'t create COM Instance After registering COM Server Successfully
Hi all,
I met a problem when using COM under eVC 4.0, After
registering simple COM Server ,I Can\'t create COM
Instance as following:
HRESULT hr=CoInitializeEx(NULL,COINIT_MULTITHREADED );
if(!SUCCEEDED(hr))
{
MessageBox(TEXT(\"Failed to init COM !\"));
}
ITestMePtr Conn1;
hr=Conn1.CreateInstance(_uuidof( TestMe ));
if (FAILED(hr))
{// error happened here
MessageBox(_T(\"Create the COM Server instance failed!
\"));
return;
}
It happened on CEPC and CE.Net Emulator.anyone can help
me?
thanks
jack