<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issues with Headers in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8935004#M5257</link>
    <description>&lt;P&gt;Hi, it looks like the problematic lines are where &lt;STRONG&gt;ACUI_PORT&lt;/STRONG&gt; occurs, and maybe the comiler is interpreting that as the class name and getting confused because the ACUI_PORT macro isn't defined.&amp;nbsp; The macro definition is in &lt;STRONG&gt;acui.h&lt;/STRONG&gt;, so maybe try including that before including acuiDialog.h.&lt;/P&gt;
&lt;P&gt;Probably acuiDialog.h should include acui.h, since it's using its definitions..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jul 2019 20:26:13 GMT</pubDate>
    <dc:creator>autodaug</dc:creator>
    <dc:date>2019-07-28T20:26:13Z</dc:date>
    <item>
      <title>Issues with Headers</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8915787#M5254</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may be messing up the includes on headers, but on a migration from OARX 2016 to OARX 2020, once I set all the includes in the project properties, all of my errors appear to be in the headers. For example, see the image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error Example.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/658576iC1E7777BCD713A76/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error Example.PNG" alt="Error Example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 22:10:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8915787#M5254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-17T22:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Headers</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8922090#M5255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure about the issue at your end. However, please refer ARX migration to 2019 once at&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=bTgmsp38kQc" target="_blank"&gt;https://www.youtube.com/watch?v=bTgmsp38kQc&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Also, try building ObjectARX SDK samples in 2020 once and see if you can build and load the samples in AutoCAD 2020. (this is to test your VS 2017 setup)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 05:24:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8922090#M5255</guid>
      <dc:creator>Virupaksha_aithal</dc:creator>
      <dc:date>2019-07-22T05:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Headers</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8926117#M5256</link>
      <description>&lt;P&gt;I did that, and am still running into the same header problems. I am currently running my own troubleshooting to figure it out, and am worried it could be a change between the ObjectARX versions (However, I am not seeing any such changes in any documentation).&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 17:21:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8926117#M5256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-23T17:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Headers</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8935004#M5257</link>
      <description>&lt;P&gt;Hi, it looks like the problematic lines are where &lt;STRONG&gt;ACUI_PORT&lt;/STRONG&gt; occurs, and maybe the comiler is interpreting that as the class name and getting confused because the ACUI_PORT macro isn't defined.&amp;nbsp; The macro definition is in &lt;STRONG&gt;acui.h&lt;/STRONG&gt;, so maybe try including that before including acuiDialog.h.&lt;/P&gt;
&lt;P&gt;Probably acuiDialog.h should include acui.h, since it's using its definitions..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 20:26:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/8935004#M5257</guid>
      <dc:creator>autodaug</dc:creator>
      <dc:date>2019-07-28T20:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Headers</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/9061000#M5258</link>
      <description>&lt;P&gt;Hey Autodaug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing that and added the include for acui, and the number of errors jumped from 50 to a hilarious number, now related to the various different acuiXXX.h files. Could it be the includes (or lacking entirely) are messed up and I need to modify them individually?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V.R.&lt;/P&gt;&lt;P&gt;Abel Garcia&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 21:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/9061000#M5258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-01T21:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Headers</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/9077663#M5259</link>
      <description>&lt;P&gt;Hi, I don't think you should have to modify the sdk headers. Looking at acui.h, you're right that it includes all the other acuiXXX.h and aduiXXX.h headers, if _ADESK_WINDOWS_ is defined.&amp;nbsp; So I think the expectation is that apps will just include acui.h, after including the MFC headers.&amp;nbsp; I should have noticed that before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 01:22:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/9077663#M5259</guid>
      <dc:creator>autodaug</dc:creator>
      <dc:date>2019-10-10T01:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Headers</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/9078586#M5260</link>
      <description>&lt;P&gt;Some very basic questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do you use Visual Studio 2017?&lt;/LI&gt;
&lt;LI&gt;Does your project use Platformtoolset "Visual Studio 2017 (v141)"?&lt;/LI&gt;
&lt;LI&gt;Do you build a 64 bit configuration&amp;nbsp; (x64)?&lt;/LI&gt;
&lt;LI&gt;Do you use the correct include paths to the ObjectARX 2020 SDK?&lt;/LI&gt;
&lt;LI&gt;Did you make sure that no older ObjectARX SDK include paths can be used?&lt;/LI&gt;
&lt;LI&gt;If your project use Property Sheets (.props files): Are they suitable for ARX 2020 / VS2017?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;From your screenshot it seems that &lt;FONT face="courier new,courier"&gt;CAdUiDialog&lt;/FONT&gt; is unknown to the compiler.&lt;/P&gt;
&lt;P&gt;The recommended way to include ARX headers is by including arxHeaders.h. This header will include all ARX headers you need. Settnig #defines like _INC_LEAGACY_HEADERS_, _AFXEXT, _RENDER_SUPPORT_ etc controls which headers are included. This is how the CAcUiDialog headers are included by arxHeaders.h:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE style="font-family: Consolas; font-size: 16px; color: black; background: white;"&gt;&lt;SPAN style="color: green;"&gt;//-----&amp;nbsp;Autodesk&amp;nbsp;MFC&amp;nbsp;Extensions&lt;/SPAN&gt;
&lt;SPAN style="color: gray;"&gt;#ifdef&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #6f008a;"&gt;_AFXEXT&lt;/SPAN&gt;
&lt;SPAN style="color: gray;"&gt;#pragma&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: gray;"&gt;warning&lt;/SPAN&gt;&amp;nbsp;(&lt;SPAN style="color: gray;"&gt;disable&lt;/SPAN&gt;:&amp;nbsp;4275)
&lt;SPAN style="color: gray;"&gt;#include&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #a31515;"&gt;"adui.h"&lt;/SPAN&gt;
&lt;SPAN style="color: gray;"&gt;#include&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #a31515;"&gt;"aduiBaseDialog.h"&lt;/SPAN&gt;
&lt;SPAN style="color: gray;"&gt;#include&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #a31515;"&gt;"aduiDialog.h"&lt;/SPAN&gt;
&lt;SPAN style="color: gray;"&gt;...&lt;/SPAN&gt; 
&lt;SPAN style="color: green;"&gt;//-----&amp;nbsp;AutoCAD&amp;nbsp;MFC&amp;nbsp;Extensions&lt;/SPAN&gt;
&lt;SPAN style="color: gray;"&gt;#include&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #a31515;"&gt;"acui.h"&lt;/SPAN&gt;
&lt;SPAN style="color: gray;"&gt;#include&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #a31515;"&gt;"acuiDialog.h"&lt;/SPAN&gt;
...
&lt;SPAN style="color: gray;"&gt;#endif&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: green;"&gt;//&amp;nbsp;_AFXEXT&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Do you use arxHeaders.h in your stdafx.h?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 12:28:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/9078586#M5260</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2019-10-10T12:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Headers</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/9082023#M5261</link>
      <description>&lt;P&gt;To knock the basic questions out:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Yes, I am using Visual Studio 2017&lt;/LI&gt;&lt;LI&gt;Yes, the Platformtoolset is v141&lt;/LI&gt;&lt;LI&gt;I am in 64-bit configuration&lt;/LI&gt;&lt;LI&gt;My includes are pointing to where I have the SDK saved (C:\ObjectARX 2020\)&lt;/LI&gt;&lt;LI&gt;There are no older includes.&lt;/LI&gt;&lt;LI&gt;To my knowledge, there are no .props files causing any issues.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My stdafx.h is below.&lt;/P&gt;&lt;PRE&gt;#pragma pack (push, 8)
#pragma warning(disable: 4786 4996)
//#pragma warning(disable: 4098)

//- ObjectARX and OMF headers needs this
#include &amp;lt;map&amp;gt;

//-----------------------------------------------------------------------------
#include &amp;lt;afxwin.h&amp;gt;				//- MFC core and standard components
#include &amp;lt;afxext.h&amp;gt;				//- MFC extensions
#include &amp;lt;afxcmn.h&amp;gt;				//- MFC support for Windows Common Controls

//-----------------------------------------------------------------------------
#include "arxHeaders.h"

//-----------------------------------------------------------------------------
#include "DocData.h" //- Your document specific data class holder

//- Declare it as an extern here so that it becomes available in all modules
extern AcApDataManager&amp;lt;CDocData&amp;gt; DocVars ;

#pragma pack (pop)&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 18:33:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/issues-with-headers/m-p/9082023#M5261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-11T18:33:32Z</dc:date>
    </item>
  </channel>
</rss>

