how to fix error C2872: 'IXMLDOMDocumentPtr' : ambiguous symbol

P

P2P

Hi all,
I have a project that compile without error on VC 6 (XP Pro service pack 2 )
but when i port to VC 8 (2005) then have error during compile as below:

//--------------------------------------------------------------------------------------
Compiling...
Myfiles.cpp
D:\vs2005\Myproject\Myfiles.h(14) : error C2872: 'IXMLDOMDocumentPtr' :
ambiguous symbol
could be 'D:\program files\microsoft visual studio
8\vc\include\comdefsp.h(1230) : _com_ptr_t<_IIID> IXMLDOMDocumentPtr'
with
[
_IIID=_com_IIID<IXMLDOMDocument,&
_GUID_2933bf81_7b36_11d2_b20e_00c04f983e60>
]
or 'D:\vs2005\Myproject\debug\msxml3.tlh(300) : MSXML2::IXMLDOMDocumentPtr'
//-----------------------------------------------------------------------------------------


Anyone can help me how to fix this error?

Thank for any your help.
 
D

Daniel Strigl

Hi P2P!
Compiling...
Myfiles.cpp
D:\vs2005\Myproject\Myfiles.h(14) : error C2872: 'IXMLDOMDocumentPtr' :
ambiguous symbol
could be 'D:\program files\microsoft visual studio
8\vc\include\comdefsp.h(1230) : _com_ptr_t<_IIID> IXMLDOMDocumentPtr'
with
[
_IIID=_com_IIID<IXMLDOMDocument,&
_GUID_2933bf81_7b36_11d2_b20e_00c04f983e60>
]
or 'D:\vs2005\Myproject\debug\msxml3.tlh(300) : MSXML2::IXMLDOMDocumentPtr'

Maybe this will help you:
http://support.microsoft.com/?scid=kb;en-us;269194&x=19&y=6
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top