<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Errors in XTP due to min/max macros</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Errors in XTP due to min/max macros]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 05:07:10 +0000</pubDate>
  <lastBuildDate>Wed, 01 Apr 2009 04:23:07 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13887</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Errors in XTP due to min/max macros : Hello,   You can just add  #define...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13887&amp;PID=47433&amp;title=errors-in-xtp-due-to-min-max-macros#47433</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13887<br /><strong>Posted:</strong> 01 April 2009 at 4:23am<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>You can just add </DIV><DIV>#define max __max&nbsp;</DIV><DIV>#undef max</DIV><DIV>&nbsp;</DIV><DIV>before and after you include toolkit in stdafx.h</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>And btw what point to replace max to __max. What problem with max ?</DIV>]]>
   </description>
   <pubDate>Wed, 01 Apr 2009 04:23:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13887&amp;PID=47433&amp;title=errors-in-xtp-due-to-min-max-macros#47433</guid>
  </item> 
  <item>
   <title><![CDATA[Errors in XTP due to min/max macros : Hello,because of the currently...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13887&amp;PID=47432&amp;title=errors-in-xtp-due-to-min-max-macros#47432</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 13887<br /><strong>Posted:</strong> 01 April 2009 at 3:58am<br /><br />Hello,<br><br>because of the currently running porting of our product to x64, we're starting to use constructs <font color="#0000ff"><b>__min/__max</b></font> all over in our code base instead of historic min/max macros. This is an easy replacement to do in our own sources.<br><br>But since XTP sources also use these old min/max macros and we do not wish to modify XTP sources (to keep version upgrade maintenance low), we're forced to apply the macro NOMINMAX to XTP sources. However, introducing this macro in header files makes the _order_ in which headers are included into sources very error-prone - an incorrect order of includes could then lead to XTP compilation errors like these:<br><font color="#ff0000"><br>xtremetoolkitpro\source\common\XTPVC50Helpers.h(569) : error C3861: 'min': identifier not found<br>xtremetoolkitpro\source\common\XTPVC50Helpers.h(569) : error C3861: 'max': identifier not found<br>xtremetoolkitpro\source\reportcontrol\XTPReportControl.h(3504) : error C3861: 'max': identifier not found<br>xtremetoolkitpro\source\calendar\XTPCalendarUtils.h(1022) : error C3861: 'min': identifier not found<br>xtremetoolkitpro\source\calendar\XTPCalendarPaintManager.h(1272) : error C3861: 'min': identifier not found<br>xtremetoolkitpro\source\calendar\XTPCalendarTimeLineViewTimeScale.h(221) : error C3861: 'max': identifier not found<br>xtremetoolkitpro\source\syntaxedit\XTPSyntaxEditDrawTextProcessor.h(511) : error C3861: 'max': identifier not found</font><br><br><br>That's why we would like to have a free order of includes so that the order is independent of whether min/max is used in some of them or not.<br><br>To achive this, it would be great to have these replacements done directly by CodeJock.<br>Could you please replace the usage of min/max macros in XTP sources with __min/__max versions?<br><br>Thank you, in advance!<br><br>]]>
   </description>
   <pubDate>Wed, 01 Apr 2009 03:58:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13887&amp;PID=47432&amp;title=errors-in-xtp-due-to-min-max-macros#47432</guid>
  </item> 
 </channel>
</rss>