高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】large dllexe size
large dll/exe size
large dll/exe size
i am using dwgdirect 2.1.0 to create a dll to simply convert from a dwg to a dxf file. this is a very small function to do the conversion along with the exsystemservices, exhostappservices, and odfilebuf classes from the odconvert14 sample. the problem is that this very simply dll ends up being over 5 mb in size, which seems very large.
this has been covered before in some threads, but my question is how is the dconvert application for dwg to dxf conversion that you can download (but not include with a new application) form the files section is only about 800 kb, while the smallest that i can get my dll is 5mb. is the dconvert application not using the same dwg libraries?
here are the .lib file that i am linking into my project:
dd_vc6md_alloc.lib
dd_vc6md_db.lib
dd_vc6md_root.lib
dd_vc6md_ge.lib
dd_vc6md_gi.lib
dd_vc6md_gs.lib
dd_vc6md_modelergeometry.lib
dd_vc6md_spatialindex.lib
thanks,
mike childs
sustaining member
you may try to drop dd_vc6md_gs.lib, dd_vc6md_modelergeometry.lib, dd_vc6md_spatialindex.lib,
and perhaps dd_vc6md_gi.lib (that i'm not sure of)
vladimir
thanks for the suggestions. i've actually already eliminated any .lib files that weren't required. in any case, the culprit seems to be the dd_vc6md_db.lib file which is many times larger than the other .lib files used combined. that file is definitely needed.
does anyone know how the dwg-to-dxf application can be so small if it is using the same libraries (if it is)? is there any way that a commercial application can simply distribute that application rather than building their own conversion library since that application is so small?
thanks,
mike childs
sustaining member
|