bredlie

IDocument defined in both esriframework.tlb and atlhandler.h when using VS2010 C++

Discussion created by bredlie on Sep 16, 2013
Latest reply on Sep 16, 2013 by bredlie
I am attempting to port my project from VS 2008 to VS2010.  When I try to compile I get the following error.

2010\src\esri\capturearcinfo\debug\esriframework.tlh(297): error C2872: 'IDocument' : ambiguous symbol
1>          could be '....\src\esri\capturearcinfo\debug\esriframework.tlh(30) : IDocument'
1>          or       'c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\atlhandler.h(155) : ATL::IDocument'

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.

Any suggestions before I surrender and go back to VS2008??

Thanks!

Robert

Outcomes