Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - static linking to avoid 10+ Mb of codejock dll ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

static linking to avoid 10+ Mb of codejock dll ?

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

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Topic: static linking to avoid 10+ Mb of codejock dll ?
    Posted: 14 January 2009 at 5:53pm
Hi; just a very quick request ;)
 
I'm running Visual Studio 2008 and I set up codejock onto it;
 
I just ran a small test to compile a dummy application created with AppWizard with dynamic linking, but it order to run, it requires the codejock DLL which is more than 10 megabytes!!
 
I intend to make a very small software which will be downloadable from internet and I just need a few codejock toolkit classes, so I want to ship the lightest executable possible, I don't want to distribute 10 megabytes of DLL;
 
How do I create a new AppWizard application which will include ONLY the codejock classes I use in my program with static linking ?
 
A second question: is it possible to static link the codejock classes but to keep the MFC on dynamic linking ??
 
Thanks in advance for any help provided!
 
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: 15 January 2009 at 1:46am
Hi,
 
There is option "Link with Toolkit Pro static library" in last page.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2009 at 1:27pm

ok, thanks;)

1 more thing: when I static link, does the compiler includes ONLY the code necessary for the ToolkitPro objects I use in my project, or does it includes the whole code?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2009 at 2:28pm
ONLY the code necessary
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 09 February 2009 at 3:48am
How about resources? When you include <XTToolkitPro.rc> you get all resources, even if you don't need them. Don't you?
 
Perhaps some "exclude"-defines are needed?
PokerMemento - http://www.pokermemento.com/
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: 09 February 2009 at 4:46am
Hi,
 
_XTP_EXCLUDE_xxx works also for resources:
 
f.e
_XTP_EXCLUDE_CALENDAR
_XTP_EXCLUDE_SYNTAXEDIT
_XTP_EXCLUDE_REPORTCONTROL
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.063 seconds.