![]() |
static linking to avoid 10+ Mb of codejock dll ? |
Post Reply ![]() |
Author | |
unknow ![]() Groupie ![]() ![]() Joined: 14 January 2009 Location: Belgium Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() 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!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
There is option "Link with Toolkit Pro static library" in last page.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
unknow ![]() Groupie ![]() ![]() Joined: 14 January 2009 Location: Belgium Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() |
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?
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
ONLY the code necessary
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |