几何尺寸与公差论坛------致力于产品几何量公差标准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, 04:43 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】bitmap expor

bitmap export
bitmap export
hi,
i am trying to export drawings to bitmap and used excustobjs as a reference but i am having trouble loading the winbitmap.gs module.
the following line executes ok but the pgsmodule pointer is null.
odgsmoduleptr pgsmodule = odrxdynamiclinker()->loadmodule(dd_t("winbitmap.gs"));
i have added all the odrx static module maps to my services class and added a reference to gs_winbitmap.lib.
i am using managed c++ and library version 2.06.8
what am i missing?
thanks
have you called init_static_module_map?
sergey slezkin
hi sergey,
thanks for the quick response.
i call odrx_init_static_module_map before calling odinitialize for my services class
i also have the following included..
odrx_declare_static_module_entry_point(bitmapmodul e);
odrx_begin_static_module_map()
odrx_define_static_appmodule(odstring("winbitmap.g s"), bitmapmodule)
odrx_end_static_module_map()
but as i say the call to odrxdynamiclinker()->loadmodule(dd_t("winbitmap.gs")) returns null
hi,
an update to my problem.
after digging around i worked out that loadmodule supresses the error unless setting the silent parameter to false.
i did so and found out i am getting a file not found error even if i specify the full path as below.
odgsmoduleptr pgsmodule;
try
{
pgsmodule = odrxdynamiclinker()->loadmodule(dd_t("c:\\winbitmap_2.06_8.gs"), false);
}
catch(oderror e)
{
odstring s = e.description(); // file not found error
}
any suggestions as to why it would do this?
thanks
bitmap export
hi,
i still have had no luck trying to find the cause of this issue but i need a solution.
no matter what i have tried the line
odgsmoduleptr pgs = odrxdynamiclinker()->loadmodule(dd_t("winbitmap.gs"), false);
returns a null pointer.
i am trying to write a .net dll in c++ that can be run from c#. the dll is a c# port that used ddx but due to speed and limitations needed to be re-written using the dd libraries. i have re-written nearly all the code with no other issues and need only to get this part working to finish the project
i have attached a simple mockup application that reproduces my problem.
please can someone have a look and let me know why this does not work..
i am using vs2005 sp1 and dd 2.6.8
thanks in advance for any assistance with this
attached files (20.8 kb, 4 views)

your problem may well be manifest related, like here:
you may also try to attach the same manifest to the main application.
vladimir
hi,
i had previously tried this approach but did it again anyway.
however this did not work ether.
it is running on winxp sp2 not 2003 server as was the issue in the other post.
i looked at the project you attached. you are using static libraries there. odrx_init_static_module_map call is present, but corresponding module declarations are not.
see e.g \examples\win\odamfcapp\odamfcapp.cpp (look for odrx_define_static_appmodule)
vladimir
hi vladimir,
thanks for looking,
the declarations are there in the cadservices.h file.
i had tried putting them in different files but it had no impact..
there is an error in therse declarations: odrx_define_static_appmodule(odstring(" ...
should be just odrx_define_static_appmodule(l" ...
that is - odstring cannot be used in declarations.
vladimir

thanks vladimir,
this now works....
quote:
originally posted by will.ogden@changing-workplace.com
thanks vladimir,
this now works....
hi (sorry i did not know your name)
would you please give me the source to export bitmap?
i will be helpful for me because i am new to use oda library and can not understand the conversion process.
thanks billion times in advance for this help.
see \examples\excustobjs\cmd_bmpout.cpp - implementation of bmpout command.
sergey slezkin
hi sergey
thanks for your reply.
i have checked it but how can i create odedcommandcontext* pcmdctx?
thanks--
hi sergey
i can export dwg to bmp.
thanks--
last edited by yamagata@ustage.net; 16th december 2008 at 11:15 pmfff">.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】autocad 2005 expor yang686526 DirectDWG 0 2009-05-04 04:25 PM
【转帖】attributes in dwf expor yang686526 DirectDWG 0 2009-05-04 04:24 PM
【转帖】assertion in pdf expor yang686526 DirectDWG 0 2009-05-04 04:19 PM
【转帖】certain part data to excel expor yang686526 SolidWorks二次开发 0 2009-04-13 09:35 AM


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


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