how to defien the extrudefeaturedata structure in COM?

Dear all, i define extrudefeaturedata as LPEXTRUDEFEATUREDATA2 pExtrudeFeatData; in VC 6.0 and when compiling, the system give me an error as(i am using solidworks 2006): D:\Cylinder\Cylinder.cpp(1722) : error C2065: 'LPEXTRUDEFEATUREDATA2' : undeclared identifier D:\Cylinder\Cylinder.cpp(1722) : error C2146: syntax error : missing ';' before identifier 'pExtrudeFeatData' D:\Cylinder\Cylinder.cpp(1722) : error C2065: 'pExtrudeFeatData' : undeclared identifier

i feel very strange, because in solidworks API i can only the data structure as ExtrudeFeatureData2...

if i change the definition as LPEXTRUDEFEATUREDATA pExtrudeFeatData;

when use the function of pExtrudeFeatData->IAccessSelections (pModelDoc, NULL, &accessGained); the system would give me error as error C2664: 'IAccessSelections' : cannot convert parameter 1 from 'struct IModelDoc2 *' to 'struct IModelDoc *'

it always used IModelDoc2 in Solidworks API 2006, never used IModelDoc...so i feel these errors are very strange, has anyone encountered the same problem and can give me some hint?

thanks very much cheers Shirley

Reply to
syshieley
Loading thread data ...

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.