Print Page | Close Window

Size of Exe when staticly linked

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5486
Printed Date: 24 April 2024 at 5:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Size of Exe when staticly linked
Posted By: nobs
Subject: Size of Exe when staticly linked
Date 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



Replies:
Posted By: Oleg
Date Posted: 10 November 2006 at 8:24am
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


Posted By: Simon HB9DRV
Date Posted: 10 November 2006 at 8:51am
Originally posted by oleg oleg wrote:

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"
 

Hi Oleg,

Why would this make the exe smaller?


-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 10 November 2006 at 9:22am
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


Posted By: Simon HB9DRV
Date Posted: 10 November 2006 at 9:31am
Originally posted by oleg oleg wrote:

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.

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


Posted By: ABuenger
Date Posted: 10 November 2006 at 11:09am
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= - http://forum.codejock.com/forum_posts.asp?TID=4120&KW=



-------------
Codejock support



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net