![]() |
【转帖】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. |
所有的时间均为北京时间。 现在的时间是 08:33 PM. |