几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】failing to load a custom drx module (http://www.dimcax.com/hust/showthread.php?t=16286)

yang686526 2009-05-05 10:46 AM

【转帖】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.