几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】lpedge undeclared identifier (http://www.dimcax.com/hust/showthread.php?t=5492)

yang686526 2009-04-13 12:33 PM

【转帖】lpedge undeclared identifier
 
lpedge undeclared identifier
i am trying to get edges of a face using the api - igetedges(edgelist). but edgelist is the type of lpedge*. when i defined edgelist as lpedge*, the compiling errors shows that "error c2065:'lpedge': undeclared identifier". can anyone help me to get the edgelist (pointer to an array of edges).
many thanks
feng
hi feng,
you are tring to use the old style api programming. now, the use of lp... is deprecated and you must use the com interface pointers. in your case the correct use is iedge interface directly.
you must create an array of iedge and then use it:
iedge **parray = null;
...
parray = new iedge*[count];
by turns, you could use the ole automation version of the method that use the variant type.
simone
quick


所有的时间均为北京时间。 现在的时间是 07:42 PM.