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

yang686526 2009-05-04 03:40 PM

【转帖】activex wrapped opendwg
 
activex wrapped opendwg
activex wrapped opendwg
hi everyone,
we have recently moved to 2.0.2 -> 2.1.0, and i had started to note some funny problems with our product. since opendwg is wrapped in our activex control for our product, i have researched constantly, and finally created a brand new activex control from scratch (ie moving all my code out of the equation.)
when you compile the debug build of the attached project, linked with 2.1.0 and adt equivilant libraries, and try and do a regsvr32.exe against the result ocx, i get the following message :
loadlibrary ("c:\....\activexxtest.ocx") failed - invalid access to memory location.
however if i remove the following lines from the control :
// the following is for brep support
odrx_declare_static_module_entry_point(modelermodu le);
// adtdirect
odrx_declare_static_module_entry_point(aecarchbase );
odrx_declare_static_module_entry_point(aecarchdach base);
odrx_declare_static_module_entry_point(aecareacalc ulationbase);
odrx_declare_static_module_entry_point(aecbase);
odrx_declare_static_module_entry_point(aecschedule );
odrx_declare_static_module_entry_point(aecschedule data);
odrx_declare_static_module_entry_point(aecstructur ebase);
odrx_begin_static_module_map()
odrx_define_static_application(dd_t("modelergeomet ry"), modelermodule)
// adt direct
odrx_define_static_application(dd_t("aecarchbase") , aecarchbase)
odrx_define_static_application(dd_t("aecarchbase40 "), aecarchbase)
odrx_define_static_application(dd_t("aecarchdachba se"), aecarchdachbase)
odrx_define_static_application(dd_t("aecarchdachba se40"), aecarchdachbase)
odrx_define_static_application(dd_t("aecareacalcul ationbase"), aecareacalculationbase)
odrx_define_static_application(dd_t("aecareacalcul ationbase40"), aecareacalculationbase)
odrx_define_static_application(dd_t("aecbase"), aecbase)
odrx_define_static_application(dd_t("aecbase40"), aecbase)
odrx_define_static_application(dd_t("aecschedule") , aecschedule)
odrx_define_static_application(dd_t("aecschedule40 "), aecschedule)
odrx_define_static_application(dd_t("aecscheduleda ta"), aecscheduledata)
odrx_define_static_application(dd_t("aecscheduleda ta40"), aecscheduledata)
odrx_define_static_application(dd_t("aecstructureb ase"), aecstructurebase)
odrx_define_static_application(dd_t("aecstructureb ase40"), aecstructurebase)
odrx_end_static_module_map()
everything works perfectly fine, and the regsvr32.exe succeeds?
please let me know if i can help any further with this problem, as this is quite an urgent issue for us.
cheers
jason
attached files
is not it the same problem?
sergey slezkin
yes, but i did not get a response to the problem, and i assumed it was becuase the name of the thread did not explain it correctly, so it may not have got the attention of the correct people that could of fixed it, so i reposted it with a more accurate descritpion in the heading, and voila, fixed :-)
cheers
jason
quote:
originally posted by sergey slezkin
is not it the same problem?


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