Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Size of Exe when staticly linked
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Size of Exe when staticly linked

 Post Reply Post Reply
Author
Message
nobs View Drop Down
Groupie
Groupie
Avatar

Joined: 12 September 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote nobs Quote  Post ReplyReply Direct Link To This Post Topic: Size of Exe when staticly linked
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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=

Codejock support
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.139 seconds.