几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】[arx]求教! (http://www.dimcax.com/hust/showthread.php?t=6493)

yang686526 2009-04-16 12:27 PM

【转帖】[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::on_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::on_kunloadappmsg (pkt) ;
// todo: unload dependencies here
return (retcode) ;
}
virtual void registerservercomponents () {
}
} ;
//-----------------------------------------------------------------------------
implement_arx_entrypoint(cfirstwizardapp)
调试的结果:acrxentrypoint.cpp
f:\vc
请问使用objectarx


所有的时间均为北京时间。 现在的时间是 05:17 AM.