查看单个帖子
旧 2009-04-18, 02:11 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】急!请哪位大侠帮助下!

急!请哪位大侠帮助下!
急!请哪位大侠帮助下!
我写了一个继承aceditorreactor的类,叫myaceditorreacto,并覆盖了void begindwgopen(char* filename); 现在想在acrxentrypoint里面添加这个反应器对象,该怎么加??
我用了acededitor->addreactor(pedreac),但是不对啊,为什么呢??
以下是acrxentrypoint程序内容:
extern "c" acrx::appretcode acrxentrypoint( acrx::appmsgcode msg, void* appid)
{
static myaceditorreacto * pedreac = new myaceditorreacto();
switch( msg )
{
case acrx::kinitappmsg:
acrxdynamiclinker->unlockapplication(appid);
acrxdynamiclinker->registerappmdiaware(appid);
acededitor->addreactor(pedreac);
break;
case acrx::kunloadappmsg:
unloadapp();
break;
case acrx::kinitdialogmsg:
break;
default:
break;
}
return acrx::kretok;
}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)