几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-04, 07:29 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】different results with dynamic and static lib

different results with dynamic and static lib ?
different results with dynamic and static lib ?
i explain the two procedures :
phase a)
i've add the code below in odwriteex project
program files\opendesignalliance\projectfiles\win32\msvc6\ examples\odwriteex\odwriteex.dsp
it works well
phase b)
i've add exactly the same code in my app the result is different except the call is done in a dll.
the only difference seems to be the lib
my opinion :
i think the method transformby for polyline2d was not updated in the dll concerned. the transformations seems to have no effect.
althoug the same transform works in a static version !
in phase a link is static :
//dd_vc6md_gi.lib dd_vc6md_modelergeometry.lib dd_vc6md_acisrenderer.lib dd_vc6md_acisbuilder.lib dd_vc6md_acis.lib dd_vc6md_db.lib dd_vc6md_ge.lib dd_vc6md_gs.lib dd_vc6md_root.lib
in phase b link is dynamic via dll:
//dd_gi_dll.lib dd_modelergeometry_dll.lib dd_acisrenderer_dll.lib dd_acisbuilder_dll.lib dd_acis_dll.lib dd_db_dll.lib dd_ge_dll.lib dd_gs_dll.lib dd_root_dll.lib
i've tried to change link settings in odwriteex.dsp project... but a lot of compiler errors arise at linkage
//dd_gi_dll.lib dd_modelergeometry_dll.lib dd_acisrenderer_dll.lib dd_acisbuilder_dll.lib dd_acis_dll.lib dd_db_dll.lib dd_ge_dll.lib dd_gs_dll.lib dd_root_dll.lib
i've also noticed that some
dd_acisbuilder_dll.lib
dd_vc6md_acisbuilder.lib doesn't
dd_vc6md_dwftoolkit.lib, dd_vc6md_ft.lib dd_vc6md_jpeg.lib dd_vc6md_svgexport.lib an other exist
dd_dwftoolkit_dll.lib, dd_ft_dll.lib dd_jpeg_dll.lib dd_svgexport_dll.lib don't
did i miss something else ?
void dbfiller::addmyentities(oddbdatabase* pdb,
const oddbobjectid& blockid) {
// open the block to which new entities will be added.
oddbblocktablerecordptr pblock = blockid.safeopenobject(oddb::kforwrite);
odgematrix3d agematrix3d;
oddb2dpolylineptr polyline1 = oddb2dpolyline::createobject();
// polyline must be added to the database before vertices can be added to it.
oddb2dvertexptr pdb2dvertexptr1 = oddb2dvertex::createobject();
oddb2dvertexptr pdb2dvertexptr2 = oddb2dvertex::createobject();
oddb2dvertexptr pdb2dvertexptr3 = oddb2dvertex::createobject();
oddb2dvertexptr pdb2dvertexptr4 = oddb2dvertex::createobject();
pdb2dvertexptr1->setposition(odgepoint3d(-800,0, 0));
pdb2dvertexptr2->setposition(odgepoint3d(-800,-1500, 0));
pdb2dvertexptr3->setposition(odgepoint3d(0,-1500, 0));
pdb2dvertexptr4->setposition(odgepoint3d(0,0, 0));
polyline1->appendvertex(pdb2dvertexptr1);
polyline1->appendvertex(pdb2dvertexptr2);
polyline1->appendvertex(pdb2dvertexptr3);
polyline1->appendvertex(pdb2dvertexptr4);
polyline1->makeclosed();
polyline1->setcolorindex(5, true);
polyline1->setnormal(odgevector3d(0,0,1));
polyline1->setthickness(-300);
agematrix3d.setcoordsystem( odgepoint3d(800, 1500.0, 300.0),
odgevector3d(1.0, 0.0, 0.0),
odgevector3d(0.0, 1.0, 0.0),
odgevector3d(0.0, 0.0, 1.0));
// agematrix3d.settranslation(odgevector3d(500,0,0));
if (polyline1->iskindof(oddb2dpolyline::desc())) {
odresult aresult = polyline1->transformby(agematrix3d);
}
pblock->appendoddbentity(polyline1);
}
subsidiary question : how is it possible to understand all the stuff about lib.
thanks for any help.
philippe
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】compile with visual c== 2005 express yang686526 DirectDWG 0 2009-05-04 06:01 PM
【转帖】access violation on getblockproperties90 - dynamic blocks yang686526 DirectDWG 0 2009-05-04 03:31 PM


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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多