AutoCAD::IAcadApplication *pAcad; CLSID clsid; HRESULT hr= ::CLSIDFromProgID(L"AutoCAD.Application", &clsid); if (FAILED(hr)) return; HRESULT res=::GetActiveObject(clsid, NULL, &pUnk); if(res != S_OK) return;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)