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.