查看单个帖子
旧 2009-04-16, 12:27 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】[arx]求教!

[arx]求教!
[arx]求教!
请教各位大虾:调试时出现下面的是什么问题?就算我仅仅写一句:acedalert("ppp")也出现如下类似的问题?不知是不是我设置的有问题?我用的是vc
把你的程序贴一下,大家一起看看啊,
'acedcommandstack::addcommand' : cannot convert parameter 1 from 'const char [20]' to 'const achar *'
我在vc里新建了一个objectar文件,只在入口函数添加了一句话:acedalert("my sample");不知道加的位置对不对。
class cfirstwizardapp : public acrxarxapp {
public:
cfirstwizardapp () : acrxarxapp () {}
virtual acrx::appretcode on_kinitappmsg (void *pkt) {
// todo: load dependencies here
// you *must* call on_kinitappmsg here
acrx::appretcode retcode =acrxarxapp:n_kinitappmsg (pkt) ;

// todo: add your initialization code here
acedalert("my sample");
return (retcode) ;
}
virtual acrx::appretcode on_kunloadappmsg (void *pkt) {
// todo: add your code here
// you *must* call on_kunloadappmsg here
acrx::appretcode retcode =acrxarxapp:n_kunloadappmsg (pkt) ;
// todo: unload dependencies here
return (retcode) ;
}
virtual void registerservercomponents () {
}
} ;
//-----------------------------------------------------------------------------
implement_arx_entrypoint(cfirstwizardapp)
调试的结果:acrxentrypoint.cpp
f:\vc
请问使用objectarx
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)