查看单个帖子
旧 2009-04-16, 10:59 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】he function acedinvoke can not work

the function acedinvoke can not work
the function acedinvoke can not work
i defined myfun as following in lisp:
(defun myfun() (* 2 180))
and the function works right in command state.
commandmyfun)
360
but when i spawn the function in arx,it's can not work.
here is my code:
+++++++++++++++++++++++++++++++++++++++++
struct resbuf *result = null, *list;
list = acutbuildlist(rtstr, "myfun", 0);
if (list != null)
{
int stat = acedinvoke(list, &result);
if (stat == rterror)
acdbfail(l"cannot run \n");
acutrelrb(list);
}
if (result != null)
{
// do somthing
acutrelrb(result);
}
else
afxmessagebox(l"null");
+++++++++++++++++++++++++++++++++++++++++++
the result show "cannot run " and result == null.
please help me.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)