|
I tried to use instance from file, not from registry.
I wonder I can use CoCreateInstanceFromFile method for this situation.
I found this method return E_INVALIDARGS but I don't know why.
Please help me, thank you.
Example code I used:
HRESULT hr;
CoInitialize(NULL);
IMyObject myObject; // IMyObject : IUnknown
MULTI_QI qiResult[256];
hr = CoGetInstanceFromFile(NULL,NULL,&myObject,
CLSCTX_INPROC,STGM_READ,
_T("MyAllObjects.dll"),256,qiResult);
...
CoUninitialize();
|
|
|
|