Print Page | Close Window

how to exclude from build

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


Topic: how to exclude from build
Posted By: vjedlicka
Subject: how to exclude from build
Date Posted: 13 July 2014 at 10:07am
During build, I see messages like

...
Including Calendar       (Use _XTP_EXCLUDE_CALENDAR       to exclude from build)
...

But where should I use the _XTP_EXCLUDE_CALENDAR? I put it to stdafx.h and the message is still there.


-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Replies:
Posted By: olebed
Date Posted: 14 July 2014 at 8:24am
Hello Vaclav,

You must define _XTP_EXCLUDE_CALENDAR   before  including <XTToolkitPro.h> in StdAfx.h.

Regards,
  Oleksandr Lebed


Posted By: vjedlicka
Date Posted: 17 July 2014 at 11:56am
Thanks!

-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11


Posted By: mikegb
Date Posted: 21 July 2014 at 3:04pm
I've used _XTP_EXCLUDE_CALENDAR before but I did not see my binary size reduced (statically link, do not use the calendar control).  What is its benefit?


Posted By: olebed
Date Posted: 23 July 2014 at 4:55am
take Samples\ReportControl\ReportCustomHeap for example.
(Windows7, VS2013, last ToolkitPro version)

change some properties of project to make static linking:

for all configurations
'Configuration Properties'->General->'Use of MFC'->'Use MFC in a Static Library'

for debug configurations:
'Configuration Properties' -> 'C/C++' -> 'Code generation' -> 'Runtime Library' -> 'Multi-threaded Debug (/MTd)'

for release configurations:
'Configuration Properties' -> 'C/C++' -> 'Code generation' -> 'Runtime Library' -> Multi-threaded (/MT)

I used Unicode Debug configuration and got ReportCustomHeap.exe binary with size 13 417 472 Bytes.

When _XTP_EXCLUDE_CALENDAR defined in StdAfx.h (before including XTToolkitPro.h) I got size of binary 13 416 960 Bytes. (minus 512 Bytes)

When I excluded all except REPORTCONTROL, I got size of binary 10 998 272 Bytes. (minus 2 419 200 Bytes)



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