查看单个帖子
旧 2009-05-05, 10:46 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】failing to load a custom drx module

failing to load a custom drx module
failing to load a custom drx module
hello,
i've created a custom drx module and i'm trying to load it with :drxdynamiclinker()->loadmodule() with no success.
this is the class in the module:
#define _toolkit_in_dll_
#include "rxdynamicmodule.h"
#include "acdbplant.h"
class customobjectsmodule : public odrxmodule
{
public:
customobjectsmodule()
{
}
~customobjectsmodule()
{
}
protected:
void initapp()
{
acdbplant::rxinit();
}
void uninitapp()
{
acdbplant::rxuninit();
}
};
odrx_define_dynamic_module(customobjectsmodule);
odrxdynamiclinker()->loadmodule returns null, and i can't figure out why.
any suggestions?
thanks.
compare your module with excustobjs sample of custom drx.
note that loading of external .drx (dll) is possible only in dll configuration of dwgdirect. also be sure to have version suffix in .drx file name like:
mymodule_2.03_6.drx
here 2.03 is dwfdirect version
_6 means vc6 compiler.
sergey slezkin
it was the suffix.
i had to rename my drx module from db4m.drx to db4m_x.x_x.drx
thank you.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)