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

yang686526 2009-05-06 03:44 PM

【转帖】importing dwf file fails in 2.7.1
 
importing dwf file fails in 2.7.1
importing dwf file fails in 2.7.1
our application allows importing of dwf files. this worked fine with release 2.6.1. it does not work with 2.7.1.
specifically, the following is no longer working:
oddwfimportptr importer = createimporter();
with 2.7.1, an importer is not created. has something changed with this?
nothing has changed as far as i know.
which compiler do you use?
static or dynamic libraries?
vladimir
i'm using static libs with vs2003.
i think i found the problem. apparently the dwf import stuff is now in a static application module, so adding the following seems to have resolved the issue:
odrx_declare_static_module_entry_point(dwf7importm odule);
odrx_define_static_appmodule(l"dd_dwf7import.drx", dwf7importmodule)
it would have been nice to mention this in the release notes since it requires a change to client applications.
actually dwf import is dynamic module from the start, but you are right - there were some subtle changes that made the code that worked to stop working.
vladimir


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