乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 24|回复: 1

The function acedInvoke can not work

[复制链接]

5

主题

10

帖子

2

银币

初来乍到

Rank: 1

铜币
30
发表于 2007-3-13 16:34:00 | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报

1

主题

36

帖子

5

银币

初来乍到

Rank: 1

铜币
40
发表于 2010-8-23 19:31:00 | 显示全部楼层
list = acutBuildList(RTSTR, "myfun", 0);
改为list = acutBuildList(RTSTR, _T("myfun"), 0);
即可
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-2-5 19:40 , Processed in 0.200255 second(s), 67 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表