以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  急求!!!DOM模型解析XML时编译出错  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=86443)


--  作者:sprite123
--  发布时间:8/26/2010 3:22:00 PM

--  急求!!!DOM模型解析XML时编译出错
如题
在我编译的时候出现了下面的错误信息,求哪位大神指导下,很急!!
谢谢!!!!
e:\program files\vc98\include\comip.h(690) : error C2227: left of '->QueryInterface' must point to class/struct/union
        e:\program files\vc98\include\comip.h(195) : see reference to function template instantiation 'long __thiscall _com_ptr_t<class _com_IIID<struct MSXML2::IXMLDOMNode,&struct __s_GUID _GUID_2933bf80_7b36_11d2_b20e_00c04f983e60> >::_QueryInterf
ace(const long &)' being compiled
--  作者:sprite123
--  发布时间:8/26/2010 4:08:00 PM

--  
跪求帮忙啊~~
--  作者:sprite123
--  发布时间:8/27/2010 2:39:00 PM

--  
我自己检查出来啦~~
问题是这样的:
MSXML2::IXMLDOMNodePtr pChild;
   .....
pChild = pChild->get_nextSibling(&pChild);
上面这句是错误的
pChild->get_nextSibling(&pChild);就行了
低级失误  -_-!!
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
94.727ms