Category : activeqt

I want to connect to a running object using COM. I have this code. CLSID clsid; CLSIDFromProgID(L"CSI.ETABS.API.ETABSObject", &clsid); // get the active ETABS object CComPtr<IUnknown> pUnk; auto hRes = GetActiveObject(clsid, NULL, (IUnknown**)&pUnk); if(!CheckHRESULT(hRes, L"Cannot get active ETABSObject!")) return (hRes); hRes = pUnk->QueryInterface(__uuidof(ETABSv17::cOAPI), (void **) &pETABSObject); if(!CheckHRESULT(hRes, L"Cannot attach to ETABSObject!")) return (hRes); However the compiler ..

Read more