Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Error

Error

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiodebugginghelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex_Y
    wrote on last edited by
    #1

    If you getting error like that error C2872: 'IXMLDOMParseErrorPtr' : ambiguous symbol could be 'c:\program files\microsoft visual studio 8\vc\include\comdefsp.h(1263) : _com_ptr_t<_IIID> IXMLDOMParseErrorPtr' 1> with 1> [ 1> _IIID=_com_IIID 1> ] 1> or '.\debug\msxml3.tlh(250) : MSXML2::IXMLDOMParseErrorPtr' What would be correct resolution 1. instead of IXMLDOMParseErrorPtr spErr = pXMLDom->parseError; use ::IXMLDOMParseErrorPtr spErr = pXMLDom->parseError; Or use MSXML2::IXMLDOMParseErrorPtr spErr = pXMLDom->parseError;

    :)

    A 1 Reply Last reply
    0
    • A Alex_Y

      If you getting error like that error C2872: 'IXMLDOMParseErrorPtr' : ambiguous symbol could be 'c:\program files\microsoft visual studio 8\vc\include\comdefsp.h(1263) : _com_ptr_t<_IIID> IXMLDOMParseErrorPtr' 1> with 1> [ 1> _IIID=_com_IIID 1> ] 1> or '.\debug\msxml3.tlh(250) : MSXML2::IXMLDOMParseErrorPtr' What would be correct resolution 1. instead of IXMLDOMParseErrorPtr spErr = pXMLDom->parseError; use ::IXMLDOMParseErrorPtr spErr = pXMLDom->parseError; Or use MSXML2::IXMLDOMParseErrorPtr spErr = pXMLDom->parseError;

      :)

      A Offline
      A Offline
      Alex_Y
      wrote on last edited by
      #2

      Answer myself MSXML2::

      :)

      T 1 Reply Last reply
      0
      • A Alex_Y

        Answer myself MSXML2::

        :)

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        :-D i don't know if it's your case, but it's commonly bad practice to use a using namespace directive, because of such problems of ambiguousness...


        Don't know where to start ?
        Refer the Forums Guidelines and ask a friend

        [VisualCalc 3.0][Flags Beginner's Guide]

        A 1 Reply Last reply
        0
        • T toxcct

          :-D i don't know if it's your case, but it's commonly bad practice to use a using namespace directive, because of such problems of ambiguousness...


          Don't know where to start ?
          Refer the Forums Guidelines and ask a friend

          [VisualCalc 3.0][Flags Beginner's Guide]

          A Offline
          A Offline
          Alex_Y
          wrote on last edited by
          #4

          I know, man I know. It was too many places to correct, so I was trying to be smart as:) I found that decls. in comdef is different than in msxml*.tlh, so I decided not to use defaults. Thanks, anyway.

          :)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups