几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】he function acedinvoke can not work (http://www.dimcax.com/hust/showthread.php?t=6353)

yang686526 2009-04-16 10:59 AM

【转帖】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.
command:(myfun)
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.


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