CreateInstance() is returning 0x80080005 every time, when I am trying to create an Instance of running Com server (EXE). If the COM server is not running, CreateInstance() call get success every time and opens the COM server successfully.
For example: if I manually run the Com Server(exe), then I am not able to create instance of it.
Why I am not able to create an instance of running Com Server? Please help.
CoInitializeEx(NULL, COINIT_MULTITHREADED);
HRESULT hr = assistMgr.CreateInstance(__uuidof(AssistManager::AssistManagerApp));
if (SUCCEEDED(hr))
printf ("%s: Create Instance Successful", __FUNCTION__);
else
printf("%s: Unable to create object - 0x%X", __FUNCTION__, hr);
User contributions licensed under CC BY-SA 3.0