Print Page | Close Window

Larger compiled size

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=10486
Printed Date: 15 November 2025 at 1:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Larger compiled size
Posted By: dennisV
Subject: Larger compiled size
Date Posted: 04 May 2008 at 2:43am
Just wondering - after putting in 12.0 after 11.2.1 the release compiled size has grown by a few hundred kilobytes. Is there any specific reason for it? Can I exclude some extra stuff from 12.0 to make it smaller?

Thanks,

   Dennis



-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



Replies:
Posted By: jimmy
Date Posted: 04 May 2008 at 1:18pm
Hi,

I think the new markup feature need more size.
If you can exclude this, i don't known.
How do you link ? Static or with Dynamic with CJ DLL.

  Jimmy



Posted By: dennisV
Date Posted: 04 May 2008 at 5:42pm
Originally posted by jimmy jimmy wrote:

Hi,

I think the new markup feature need more size.
If you can exclude this, i don't known.
How do you link ? Static or with Dynamic with CJ DLL.

  Jimmy


Maybe you're right - I'll dig deeper into this.

I'm linking statically.

Thanks,

   Dennis


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: Smucker
Date Posted: 06 May 2008 at 3:13am
To eliminate unused code, be sure that function-level linking is on for Codejock and your projects. Also you may want to be sure you're only including toolkit resources that you need.



-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)



Posted By: dennisV
Date Posted: 06 May 2008 at 7:31pm
Originally posted by Smucker Smucker wrote:

To eliminate unused code, be sure that function-level linking is on for Codejock and your projects. Also you may want to be sure you're only including toolkit resources that you need.


I'll double-check, but I think it's already on. The resources are one area I haven't really checked, so I'll take a look at it. Thanks!


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: znakeeye
Date Posted: 08 May 2008 at 6:58am
I believe the refined 2007-styles requires new images to be added. It's definitely the resource section you should look at!


Posted By: dennisV
Date Posted: 08 May 2008 at 7:35am
Originally posted by znakeeye znakeeye wrote:

I believe the refined 2007-styles requires new images to be added. It's definitely the resource section you should look at!

Maybe I'm not doing it right, but I just can't get the size to go down :(

I've added the following to my stdafx.h before including XTToolkitPro.h *and* also to my .rc2 file before including XTToolkitPro.rc:

#define _XTP_EXCLUDE_SYNTAXEDIT
#define _XTP_EXCLUDE_SHORTCUTBAR
#define _XTP_EXCLUDE_TASKPANEL
#define _XTP_EXCLUDE_RIBBON

these are things I don't use. It is still bigger than the 11.2 compile. Am I looking in the right direction or should I be doing something else?

Thanks!


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: Oleg
Date Posted: 08 May 2008 at 9:20am
Hi,
 
Also try in Source\Common\XTPVersion.h  comment
#define _XTP_INCLUDE_MARKUP
and rebuild lib.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dennisV
Date Posted: 08 May 2008 at 5:49pm
Originally posted by oleg oleg wrote:

Hi,
 
Also try in Source\Common\XTPVersion.h  comment
#define _XTP_INCLUDE_MARKUP
and rebuild lib.

It has actually grown by 10K after that Weird... I'll try to comment out other things as well from there to see if it helps. Is there any other place I can define/undefine/comment out things?

Thanks!


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: Oleg
Date Posted: 09 May 2008 at 1:11am
Hi,

Are you sure you rebuild static library - not dynamic ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dennisV
Date Posted: 09 May 2008 at 4:14am
Originally posted by oleg oleg wrote:

Hi,

Are you sure you rebuild static library - not dynamic ?

Yes, otherwise it would require CJ DLLs to run

One thing I haven't tried is doing a full solution rebuild - maybe that will help. I'll try it tonight.


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: dennisV
Date Posted: 14 May 2008 at 9:44am
Well, a full rebuild didn't really help, but I guess it's just the price I'll have to pay for the newer version 

Unless it's supposed to be smaller or the same, then there's a problem?


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



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