查看单个帖子
旧 2009-04-13, 12:33 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)