![]() |
【转帖】odrx-define-dynamic-module and dwgdirect 2.10
odrx_define_dynamic_module and dwgdirect 2.10
odrx_define_dynamic_module and dwgdirect 2.10 hi i'm using dwgdirect 2.10. i'd like to create my own module inherited from odgsbasemodule. definition of my class looks like below: code: //in my devicemodule.h class cdevicemodule : public odgsbasemodule { public: cdevicemodule(); ~cdevicemodule(); public: //creating device object virtual odsmartptr<odgsbasevectorizedevice> createdeviceobject(); }; odrx_define_dynamic_module(cdevicemodule); after i use macro in last line (odrx_define_dynamic_module) , i get unresolved external error: error lnk2019: unresolved external symbol "__declspec(dllimport) public: __thiscall odstring::odstring(wchar_t const *)" (__imp_??0odstring@@qae@pb_w@z) referenced in function "public: virtual class odstring __thiscall odrxwin32module<class cdevicemodule,class cdevicemodule>::modulename(void)const " (?modulename@?$odrxwin32module@vcdevicemodule@@v1@ @@ube?avodstring@@xz) if i delete the macro, compilation will go well without any errors. but my module will not load into ::odrxdynamiclinker. is there any solution for this problem? thanks in advance for fast replay. regards savip last edited by savip; 21st november 2006 at 11:22 amfff">. hi i'd like to add that i use unicode in preprocessor definitions. savip if you are using vc2005, turn off /zc:wchar_t compiler switch, it is not supported in current dd version. (will be supported in the next) vladimir last edited by vkalinin; 22nd november 2006 at 04:59 amfff">. |
所有的时间均为北京时间。 现在的时间是 02:04 AM. |