Hi there,
I've written a C++ program to connect an out-of-process application to SolidWorks, and this program works just fine on computers running SolidWorks 2011 Standard. However, one of my colleagues has SolidWorks 2012 Premium, and the same code is failing. The code is simply this:
CComPtr
HRESULT hres = NOERROR;
CoInitialize(NULL); hres = swApp.CoCreateInstance(_uuidof(SldWorks), NULL, CLSCTX_LOCAL_SERVER);
The return value I'm getting for hres on my colleague's computer is -2147221164. Any ideas? Thank you!
SolidworksApi macros