<?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 Redefining S_OK, S_FALSE, SUCCEEDED, and FAILED is not very friendly in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518644#M849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could more FileGDB API-specific names be used instead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2011 14:19:10 GMT</pubDate>
    <dc:creator>MartinDaly</dc:creator>
    <dc:date>2011-05-19T14:19:10Z</dc:date>
    <item>
      <title>Redefining S_OK, S_FALSE, SUCCEEDED, and FAILED is not very friendly</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518644#M849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could more FileGDB API-specific names be used instead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 14:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518644#M849</guid>
      <dc:creator>MartinDaly</dc:creator>
      <dc:date>2011-05-19T14:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Redefining S_OK, S_FALSE, SUCCEEDED, and FAILED is not very friendly</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518645#M850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Could more FileGDB API-specific names be used instead?&lt;BR /&gt;&lt;BR /&gt;Martin&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure that I understand the concern.&amp;nbsp; Can you elaborate on why you think this is a problem, and what you would propose instead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way these things have been redefined appears to be totally harmless.&amp;nbsp; The definitions are 100% consistent and functionally equivalent with the normal definitions in Windows.&amp;nbsp; It was necessary to do this in order to remove Windows dependencies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 15:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518645#M850</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2011-05-19T15:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Redefining S_OK, S_FALSE, SUCCEEDED, and FAILED is not very friendly</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518646#M851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am not sure that I understand the concern.&amp;nbsp; Can you elaborate on why you think this is a problem, and what you would propose instead?&lt;BR /&gt;&lt;BR /&gt;The way these things have been redefined appears to be totally harmless.&amp;nbsp; The definitions are 100% consistent and functionally equivalent with the normal definitions in Windows.&amp;nbsp; It was necessary to do this in order to remove Windows dependencies.&lt;BR /&gt;&lt;BR /&gt;-David&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If they are "100% consistent and functionally" equivalent then why bother #undef-ing them first? If they are not there and you want them then check for their existence and only #define them if necessary. That would be 100% friendlier. Any file that #include-s them has messed up Intellisense that refers to your fgdbError.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, they are 100% unused in the SDK-supplied headers; they are only used in the samples. If SDK client code needs them, then SDK client code should be responsible for ensuring their existence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 08:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518646#M851</guid>
      <dc:creator>MartinDaly</dc:creator>
      <dc:date>2011-05-20T08:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Redefining S_OK, S_FALSE, SUCCEEDED, and FAILED is not very friendly</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518647#M852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried using the Beta-3 release?&amp;nbsp; These macros are all defined appropriately in FileGDBCore.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(which is included by FileGDBAPI.h).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 20:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518647#M852</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-05-24T20:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Redefining S_OK, S_FALSE, SUCCEEDED, and FAILED is not very friendly</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518648#M853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The existing definition (in API 1.3) is a problem, when building with Visual Studio 2010, because if I include winerror.h after FileGDBAP.h I get a macro redefinition warning. In general, I should not have to worry about what order I include the headers. This is especially so when there are multiple headers. My code is not at simple as &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#include &amp;lt;winerror.h&amp;gt;
#include "FileGDBAPI.h"
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It's actually:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// in main.cpp ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FileGDBAPI.h"
&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "AddFile.h"

// in AddFile.h ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "RunParameters.h"

// in RunParameters.h ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "Geo.h"

// in Geo.h ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &amp;lt;atlcomcli.h&amp;gt; // this includes winerror.h, which causes the warning
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution is to #include AddFile.h before FileGDBAPI.h in main.cpp, but I shouldn't have to search through that many layers of header files (each of which has only the #inclusions it needs) to find the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regardless of the complexity of my own code and file structure, I should not have to worry about the order of inclusion of your and Microsoft's header files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/redefining-s-ok-s-false-succeeded-and-failed-is/m-p/518648#M853</guid>
      <dc:creator>__11</dc:creator>
      <dc:date>2021-12-11T22:37:55Z</dc:date>
    </item>
  </channel>
</rss>

