how to exclude from build |
Post Reply |
Author | |
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
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 |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello Vaclav,
You must define _XTP_EXCLUDE_CALENDAR before including <XTToolkitPro.h> in StdAfx.h. Regards, Oleksandr Lebed |
|
vjedlicka
Senior Member Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
|
Thanks!
|
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
mikegb
Newbie Joined: 31 October 2013 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
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?
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
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) |
|
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 |