I am trying to create an instance of an object using
CoCreateinstance() method.
The CLSID is correct.
The parameter dwClsContext = CLSCTX_INPROC_SERVER |
CLSCTX_INPROC_HANDLER
The function blocks and does not returns.
Instead of calling CoCreateInstance(), I tried it this way:
calling CoGetClassObject() first and then calling CreateInstance()
on the returned class factory.
HRESULT hRres;
CComPtr<IClassFactory> pClassFactory;
hRes = ::CoGetClassObject(............,(LPVOID *) &pClassFactory);
......
pClassFactory->CreateInstance(...........);
CoGetClassObject() returns S_OK, but the CreateInstance() method
hangs.
Has some come across this problem earlier?
Any help or pointer towards the cause of the problem would be greatly
appreciated.
Thanks in advance.
Warm Regards.