几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】file not found error (http://www.dimcax.com/hust/showthread.php?t=16300)

yang686526 2009-05-05 10:51 AM

【转帖】file not found error
 
file not found error?
file not found error?
hi,
my program throws a "file not found" oderror when attempting to executed the following line of code (winxp)
odgsmoduleptr pgs = odrxdynamiclinker()->loadmodule(dd_t("c:/winopengl_2.06_8.gs"), false);
the file is there. any ideas?
thanks!
albert
probably some dependent library is not found.
generally gs devices are stored in the same place with the other dd dlls.
vladimir

mmm.. i do have "winopengl_2.06_8.gs" in "c:\dwgdirect\dd_vc8\exe\vc8\release" which is in my path (system variable). so i can't see what it isn't working.
though, the original code snippet i posted was a hard coded path. but i have checked that
odgsmoduleptr pgs = odrxdynamiclinker()->loadmodule(dd_t("winopengl_2.06_8.gs"), false);
doesn't work.
any other ideas?
albert
try to load w/o suffix - is it working:
code:
loadmodule(dd_t("winopengl.gs"), false)?
vladimir

nope, didn't work.
odgsmoduleptr pgs = odrxdynamiclinker()->loadmodule(dd_t("winopengl.gs"), false);

hi,
okay, i sorta solved the problem. it appeared to be the failure of writing:
code:
odrx_declare_static_module_entry_point(winopenglmodule);
odrx_begin_static_module_map()
odrx_define_static_appmodule(l"winopengl.gs", winopenglmodule)
odrx_end_static_module_map()though, this just lead to compiler problems. i think i forgot to add something into the "additional dependencies". so far, i have the list at the bottom of this email. in the end, i just used: odgsmoduleptr pgs = odrxdynamiclinker()->loadmodule(dd_t("winbitmap.gs"), false);
everything is working now, except the background is grey even though it shows up as black under odamfcapp. i guess i'll look into that.
albert
dd_vc8md_acidviewobj.lib
dd_vc8md_acisbuilder.lib
dd_vc8md_alloc.lib
dd_vc8md_autosurfservices.lib
dd_vc8md_ave.lib
dd_vc8md_bagfiler.lib
dd_vc8md_bmpexport.lib
dd_vc8md_br.lib
dd_vc8md_breprenderer.lib
dd_vc8md_db.lib
dd_vc8md_dbcommands.lib
dd_vc8md_dbroot.lib
dd_vc8md_dummyrecomputedimblock.lib
dd_vc8md_dwf7export.lib
dd_vc8md_dwf7import.lib
dd_vc8md_dwfunderlay.lib
dd_vc8md_dynblocks.lib
dd_vc8md_exfieldevaluator.lib
dd_vc8md_ft.lib
dd_vc8md_ge.lib
dd_vc8md_gi.lib
dd_vc8md_gs.lib
dd_vc8md_jpeg.lib
dd_vc8md_modelergeometry.lib
dd_vc8md_pdfexport.lib
dd_vc8md_pdftoolkit.lib
dd_vc8md_plotsettingsvalidator.lib
dd_vc8md_recomputedimblock.lib
dd_vc8md_root.lib
dd_vc8md_rxplotstyleservices.lib
dd_vc8md_rxrasterprocessor.lib
dd_vc8md_rxrasterservices.lib
dd_vc8md_sm.lib
dd_vc8md_spatialindex.lib
dd_vc8md_svgexport.lib
dd_vc8md_zip.lib
dd_vc8md_zlib.lib
gs_winopengl.lib
gs_winbitmap.lib
last edited by jpalo@snowbound.com; 9th september 2008 at 11:43 amfff">.
(you didn't say you used static libraries)
vladimir


所有的时间均为北京时间。 现在的时间是 06:09 PM.