vc6转vc.net时 msxml出错
在vc6中正常使用的程序,在vc.net中编译时出现下面的错误(使用了微软的msxml)
error C2039: 'childNodes' : is not a member of 'IXMLDOMNode'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MsXml.h(537) : see declaration of 'IXMLDOMNode'
error C2660: 'IXMLDOMNode::selectSingleNode' : function does not take 1 arguments
error C2872: 'IXMLDOMNodeListPtr' : ambiguous symbol
could be 'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\comdefsp.h(1252) : _com_ptr_t<_IIID> IXMLDOMNodeListPtr'
with
[
_IIID=_com_IIID<IXMLDOMNodeList,& _GUID_2933bf82_7b36_11d2_b20e_00c04f983e60>
]
or 'f:\test\debug\msxml4.tlh(288) : MSXML2::IXMLDOMNodeListPtr'