<?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 IDocument defined in both esriframework.tlb and atlhandler.h when using VS2010 C++ in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/idocument-defined-in-both-esriframework-tlb-and/m-p/199235#M5174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to port my project from VS 2008 to VS2010.&amp;nbsp; When I try to compile I get the following error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2010\src\esri\capturearcinfo\debug\esriframework.tlh(297): error C2872: 'IDocument' : ambiguous symbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; could be '....\src\esri\capturearcinfo\debug\esriframework.tlh(30) : IDocument'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\atlhandler.h(155) : ATL::IDocument'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I have been able to tell from the web MS has defined IDocument in ATL AND included a "using namespace..." inside the ATL header in VS2010.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions before I surrender and go back to VS2008??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 23:35:07 GMT</pubDate>
    <dc:creator>RobertBredlie</dc:creator>
    <dc:date>2013-09-16T23:35:07Z</dc:date>
    <item>
      <title>IDocument defined in both esriframework.tlb and atlhandler.h when using VS2010 C++</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/idocument-defined-in-both-esriframework-tlb-and/m-p/199235#M5174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to port my project from VS 2008 to VS2010.&amp;nbsp; When I try to compile I get the following error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2010\src\esri\capturearcinfo\debug\esriframework.tlh(297): error C2872: 'IDocument' : ambiguous symbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; could be '....\src\esri\capturearcinfo\debug\esriframework.tlh(30) : IDocument'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\atlhandler.h(155) : ATL::IDocument'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I have been able to tell from the web MS has defined IDocument in ATL AND included a "using namespace..." inside the ATL header in VS2010.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions before I surrender and go back to VS2008??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 23:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/idocument-defined-in-both-esriframework-tlb-and/m-p/199235#M5174</guid>
      <dc:creator>RobertBredlie</dc:creator>
      <dc:date>2013-09-16T23:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: IDocument defined in both esriframework.tlb and atlhandler.h when using VS2010 C+</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/idocument-defined-in-both-esriframework-tlb-and/m-p/199236#M5175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One solution is to rename ESRI IDocument when you import the typelibrary.&amp;nbsp; This type of problem is common.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/298h7faa.aspx"&gt;http://msdn.microsoft.com/en-us/library/298h7faa.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 23:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/idocument-defined-in-both-esriframework-tlb-and/m-p/199236#M5175</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-09-16T23:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: IDocument defined in both esriframework.tlb and atlhandler.h when using VS2010 C+</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/idocument-defined-in-both-esriframework-tlb-and/m-p/199237#M5176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One solution is to rename ESRI IDocument when you import the typelibrary.&amp;nbsp; This type of problem is common.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/298h7faa.aspx"&gt;http://msdn.microsoft.com/en-us/library/298h7faa.aspx&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Richard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. I&amp;nbsp; have used that workaround for several other symbols.&amp;nbsp; This one appears to be special.&amp;nbsp; If I rename using the following line the IDocument class is no longer defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#import "\\builder\baseline\Packages\ESRI\Arc10\COM\esriFramework.olb"&amp;nbsp;&amp;nbsp; raw_interfaces_only raw_native_types no_namespace named_guids exclude("UINT_PTR") rename("IDocument", "esriDocument")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(beginning of missing symbol errors.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;gt;c:\baseline 2010\src\esri\capturearcinfo\esriinterface.h(138): error C2146: syntax error : missing ';' before identifier 'ipDoc'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;gt;c:\baseline 2010\src\esri\capturearcinfo\esriinterface.h(138): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;gt;c:\baseline 2010\src\esri\capturearcinfo\esriinterface.h(138): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&amp;gt;c:\baseline 2010\src\esri\capturearcinfo\esriinterface.h(138): warning C4183: 'ipDoc': missing return type; assumed to be a member function returning 'int'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 23:59:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/idocument-defined-in-both-esriframework-tlb-and/m-p/199237#M5176</guid>
      <dc:creator>RobertBredlie</dc:creator>
      <dc:date>2013-09-16T23:59:14Z</dc:date>
    </item>
  </channel>
</rss>

