<?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: ArcObjects C++: #import order problems in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobjects-c-import-order-problems/m-p/692625#M18582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Importing ESRI type libraries in C++ is painful because you have to take care to import any dependencies first.&amp;nbsp; This is not required when defining the type library itself, i.e. in the IDL.&amp;nbsp; It is also painful because of namespace/type collisions so you have to come up with the correct set of magic words needed to make this work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best advice that I have is to look at the ESRI samples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 14:23:51 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2013-10-31T14:23:51Z</dc:date>
    <item>
      <title>ArcObjects C++: #import order problems</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobjects-c-import-order-problems/m-p/692624#M18581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a lot of problems with the #import of ESRI C++ libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using precompiled headers: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stdafx.h:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#import &amp;lt;esriSystem.olb&amp;gt; raw_interfaces_only, raw_native_types, no_namespace, named_guids, auto_search , exclude("OLE_COLOR", "OLE_HANDLE", "VARTYPE") #import &amp;lt;esriSystemUI.olb&amp;gt; raw_interfaces_only, raw_native_types, no_namespace, named_guids, auto_search, exclude("IProgressDialog") // ...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The import order seem to be very important. Thing may work fine and then I add a new class where I need to use a new ESRI library and BOOM, I get a lot of strange compilation errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One common source of problems are interfaces that occur in both windows system libraries and ESRI libraries. For instance I might get a compilation error complaining about esriFramework::IPropertyPage not being defined. When I look trough the CC output I note that this was automatically excluded when importing the esriFramework.olb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice on how to prevent such problems?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 11:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcobjects-c-import-order-problems/m-p/692624#M18581</guid>
      <dc:creator>Andreas_W_Paulsen</dc:creator>
      <dc:date>2013-10-31T11:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcObjects C++: #import order problems</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobjects-c-import-order-problems/m-p/692625#M18582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Importing ESRI type libraries in C++ is painful because you have to take care to import any dependencies first.&amp;nbsp; This is not required when defining the type library itself, i.e. in the IDL.&amp;nbsp; It is also painful because of namespace/type collisions so you have to come up with the correct set of magic words needed to make this work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best advice that I have is to look at the ESRI samples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 14:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcobjects-c-import-order-problems/m-p/692625#M18582</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-10-31T14:23:51Z</dc:date>
    </item>
  </channel>
</rss>

