Hi all,
I'm following a sample from a third part SDK.
In particular this piece of code:
The result is that hr2 is negative, so it fails.
I've checked in the registry and the OnSSI.OCAdapter.1 record exists.
What's the problem?
Thank you very much!
I'm following a sample from a third part SDK.
In particular this piece of code:
Code:
CComPtr<INVRAdapter> _adapter;
CLSID clsOCAdapter;
HRESULT hr1 = CLSIDFromProgID(L"OnSSI.OCAdapter.1", &clsOCAdapter);
HRESULT hr2 = CoCreateInstance(clsOCAdapter,
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(INVRAdapter),
(void**)&_adapter);
if (FAILED(hr2))
{
//code}
The result is that hr2 is negative, so it fails.
I've checked in the registry and the OnSSI.OCAdapter.1 record exists.
What's the problem?
Thank you very much!