Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to exclude from build
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to exclude from build

 Post Reply Post Reply
Author
Message
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Topic: how to exclude from build
    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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2014 at 11:56am
Thanks!
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
Back to Top
mikegb View Drop Down
Newbie
Newbie


Joined: 31 October 2013
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote mikegb Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.