![]() |
【转帖】loadmodule does not find file
loadmodule does not find file?
loadmodule does not find file? hello, i am using visual studio c++ 2005 express edtion when i write the following code: code: odgsmoduleptr pgs = odrxdynamiclinker()->loadmodule(dd_t("winbitmap.gs"), false); i get an exception: "file not found winbitmap.gs" i have both "winbitmap.gs" and "winbitmap_2.04_8.gs" in the same dir as my application. i also tried to tell the application exactly where to find it (absolute file name) but that had the same result. can anyone give me a clue? are you using dll or statically linked configuration? sergey slezkin i did some experimentation. the error was with static linking. i tried dynamic and that worked. so i looked further and i saw i needed to include somewhere the folowing drx_declare_static_module_entry_point(bitmapmodule ); odrx_begin_static_module_map() odrx_define_static_appmodule (dd_t("winbitmap.gs"), bitmapmodule) odrx_end_static_module_map() and include gs_winbitmap.lib after these changes to the demo project, that worked as well. nice. however: i want to use dwgdirect in .net. so i started a new visual c++ project that is mixed managed and native. i am using static linking. i did exactly the same things i described above ( drx_declare_static_module_entry_point + odrx_begin_static_module_map + include gs_winbitmap.lib) but now i have that formiliar problem again (file not found). is there a specific place these module maps need to be defined? okay, i found it. i forgot a "odrx_init_static_module_map();" call |
所有的时间均为北京时间。 现在的时间是 01:21 PM. |