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

size of activex control..!!

size of activex control..!!
sir,
i've developed an mfc activex control for displaying the dwg and dxf files using the dwgdirect 1.11 library. i used vc++ 6.0. but the size of the component seems to be aroung 8.59 mb. and not even that, i've gone through the samle sdi application for viewing the files, which have been provided by open desing alliance, and its size too seems to be the same (8.59 mb). the compiler option is set as shared linking. so i just want to know is there any way to reduce the size of the component.
i've also gone through the opendwg toolkit/viewkit library. and also developed a sample win32 application for viewing that. but its size is much less, when compaired to the one, which is build using the new dwgdirect 1.11 library. i also noticed that they are not providing any support to the old one i.e open dwg toolkit/viewkit.
i've also noticed that the new library require two dll files, which i've been listed below, for running the application in a machine.
1. mfc042d.dll
2. msvcp60d.dll
if i make a package of all these, the size comes aroung 10mb.
so i need to know is there any way to reduce the size of the control.
and how can we avoid these dependencies (the above 2 dll's) .
rajesh parameswaran

rajuinnet
# 7th july 2004, 02:03 am

registered user join date: jan 2002
posts: 88
size of your activex
hi,
you have a sample odamfcappdll which use dll.
i have created an activex which use dwgdirect dll, and the size is now 2 mb.
thanks,
laurent

lg
# 7th july 2004, 11:27 am

moderator join date: mar 2002
posts: 2,994
i think 2m is the size of application itself without dd dlls.
an application statically linked with dwgdirect may be of less size than all dd dlls. for example odreadex and odwriteex samples statically linked with dd have the size of 4.5m and odamfcapp using much more functionality is of 6.5m size.
the size can be reduced by turning off acis support (surely 3dsolids would not be rendered in this case and acis objects loaded from file would not be converted between dwg 2004 and minor dwg and dxf).
we are also going to provide more flexibility to avoid linking with unnecessary functionality in future.
btw, rajesh, are you sure mfc042d.dll and msvcp60d.dll are the correct names? they seem to be debug dlls.
sergey slezkin

sslezkin
# 7th july 2004, 10:01 pm

registered user join date: jul 2004
location: india
posts: 82

size of control reduced to 1/2
hi mr.laurent & mr.sergey slezkin
i would like to thank u all for the positive reply. i solved the problem by reducing the size of the ocx to one half. the earlier one was debug build and when i tried release version the size seems to be one half of the earlier one. now its size is 4.02 mb.
thank u very much
regards,
rajesh parameswaran

rajuinnet
# 15th july 2004, 10:06 pm

registered user join date: jul 2004
location: india
posts: 82

size issue solved without using release build.
hi all,
i found that without using the release build, we can reduce the size of the application. all u have to do is:
on the link tab, in the project options field, type in "/opt:ref". this tells the linker to continue optimizing away unreferenced code. this is the default when debug information is turned off, but it defaults to off when you tell the linker to generate debug information. failing to specify this will cause your executables and dlls to get 10-20% larger. you should also specify /ignore:4089 to tell the linker to not generate warnings if it optimizes away all references to a dll (this tip works with vc++ .net also).
u can get more details from the following link..
---------------------------------------
regards,
rajesh parameswaran.

rajuinnet

none
? | ?
thread tools



display modes
linear mode


search this thread

rate this thread
excellent
good
average
bad
terrible

posting rules
you may post new threads
you may post replies
you may post attachments
you may edit your posts
is on
are on
code is off
html code is off
forum jump
user control panel private messages subscriptions who's online search forums forums home general topics news questions and remarks business issues industry commentary general software issues documentation issues future directions dwg libraries dwgdirect.net dwgdirect, c++ version dwgdirectx, activex version adtdirect/c3ddirect opendwg toolkit/viewkit dgn libraries dgndirect, c++ version (2.x+) dgndirect libraries (legacy 0.99xx)
all times are gmt -7. the time now is 01:06 amfff">.
- - -
copyright ?2000 - 2009, jelsoft enterprises ltd.
copyright 1998-2008 open design alliance inc.
size of your activex
hi,
you have a sample odamfcappdll which use dll.
i have created an activex which use dwgdirect dll, and the size is now 2 mb.
thanks,
laurent
i think 2m is the size of application itself without dd dlls.
an application statically linked with dwgdirect may be of less size than all dd dlls. for example odreadex and odwriteex samples statically linked with dd have the size of 4.5m and odamfcapp using much more functionality is of 6.5m size.
the size can be reduced by turning off acis support (surely 3dsolids would not be rendered in this case and acis objects loaded from file would not be converted between dwg 2004 and minor dwg and dxf).
we are also going to provide more flexibility to avoid linking with unnecessary functionality in future.
btw, rajesh, are you sure mfc042d.dll and msvcp60d.dll are the correct names? they seem to be debug dlls.
sergey slezkin

size of control reduced to 1/2
hi mr.laurent & mr.sergey slezkin
i would like to thank u all for the positive reply. i solved the problem by reducing the size of the ocx to one half. the earlier one was debug build and when i tried release version the size seems to be one half of the earlier one. now its size is 4.02 mb.
thank u very much
regards,
rajesh parameswaran

size issue solved without using release build.
hi all,
i found that without using the release build, we can reduce the size of the application. all u have to do is:
on the link tab, in the project options field, type in "/opt:ref". this tells the linker to continue optimizing away unreferenced code. this is the default when debug information is turned off, but it defaults to off when you tell the linker to generate debug information. failing to specify this will cause your executables and dlls to get 10-20% larger. you should also specify /ignore:4089 to tell the linker to not generate warnings if it optimizes away all references to a dll (this tip works with vc++ .net also).
u can get more details from the following link..
---------------------------------------
regards,
rajesh parameswaran.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】interface control dwgs yang686526 American standards 0 2009-04-29 08:33 PM
【转帖】asme - where to star yang686526 American standards 0 2009-04-29 07:28 PM
【转帖】vista and activex control yang686526 SolidWorks二次开发 0 2009-04-13 03:19 PM
【转帖】how to create activex control in vb.net for use in tab via addcontrol3 yang686526 SolidWorks二次开发 0 2009-04-12 09:14 PM


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


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