几何尺寸与公差论坛

 找回密码
 注册
查看: 594|回复: 0

【转帖】lpedge undeclared identifier

[复制链接]
发表于 2009-4-13 12:33:36 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 13:59 , Processed in 0.037391 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表