Print Page | Close Window

static linking to avoid 10+ Mb of codejock dll ?

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=13177
Printed Date: 23 June 2025 at 6:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: static linking to avoid 10+ Mb of codejock dll ?
Posted By: unknow
Subject: static linking to avoid 10+ Mb of codejock dll ?
Date 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!
 



Replies:
Posted By: Oleg
Date 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


Posted By: unknow
Date 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?


Posted By: SuperMario
Date Posted: 19 January 2009 at 2:28pm
ONLY the code necessary


Posted By: znakeeye
Date 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/


Posted By: Oleg
Date 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



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