Unable to Initial COM Object
Hi All,
I trace my code and realize that it is unable to enter this function:
hr = CoInitialize(NULL); and also the one below
hr = CoCreateInstance(rclsid, pOuter, dwClsContext, __uuidof(IUnknown), reinterpret_cast<void**>(&pIUnknown));
in file COMIP.H
hence hr get a negetive value. and it gives an error while attempting to write the error :
if (FAILED(hr) && (hr != E_NOINTERFACE)) {
_com_issue_error(hr);
}
in COMIP.H.
Appears that it is unable to create COM instance, appreciate any help I get..
thx
Jay
|