AnsweredAssumed Answered

Issues with OpenDoc6

Question asked by Eg Gloo on Apr 18, 2016
Latest reply on Apr 18, 2016 by Artem Taturevych



I'm trying to open a part file in VC++ 6. Here's what I have at the moment:


if (SUCCEEDED(swApp.CoCreateInstance(__uuidof(SldWorks), NULL, CLSCTX_LOCAL_SERVER)))
     BSTR filename = bstr_t("W:\\models\\Rod.SLDPRT");
     long err = 0;
     long warn = 0;
     ModelDoc2 swModel = swApp->OpenDoc6(filename, (int)swDocPART, (int)swOpenDocOptions_Silent, bstr_t(""), &err, &warn);


I'm having issues on line 07 where I get an error saying "Incomplete type is not allowed". Does anyone know what might be wrong there?


Any help would be much appreciated.