Size of Exe when staticly linked |
Post Reply |
Author | |
nobs
Groupie Joined: 12 September 2006 Location: Austria Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 10 November 2006 at 8:17am |
Hello Guys
We have a little Helper application we want to use without installing our main APP. Because of this, I staticly link the MFC and Codejock stuff so I'm not dependend on DLL's Under Toolkitpro vers 9.81 the app had 1000 kb (exactly 1000) with the vers 10.31 it now has over 1300 kb. Is there a simple way to make the file smaller? how can i build a toolkitpro lib which only include the needed stuff for the app? or should i add the required codejock source directly to my application? regards nobs |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
one of option is indeed add toolkit files to your app. In this case add in your stdafx.h:
#ifndef _XTP_EXT_CLASS #define _XTP_EXT_CLASS #endif #define __XTPDLLEXPORTS_H__ #include "Common/XTPMacros.h"
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
|
Hi Oleg, Why would this make the exe smaller? |
|
Simon HB9DRV
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
I don't think it will change a lot
but he will be able to include only files he needs and may be modify CommandBars to remove all themes he don't need, Office2007 frame etc.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
|
OK - thanks, I was just wondering. I link against the library, couldn't see how it could be made any smaller. As it is the feedback I am getting from my users is terrific! |
|
Simon HB9DRV
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
You can use PECompact to reduce the size of the exe. Other packers such as UPX do not work properly.
http://forum.codejock.com/forum_posts.asp?TID=4120&KW= |
|
Codejock support
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |