MSXML SDK文档的例子: #include <stdio.h>#import <msxml4.dll>using namespace MSXML2;int main(int argc, char* argv[])} 很不幸,不能编译通过。首先也许我装的msxml4.dll里还没有IXMLDOMDocument3Ptr定义,要改为IXMLDOMDocument2Ptr。然后看到http://www.cnblogs.com/babyblue/archive/2005/05/13/154430.html这里说释放智能指针要用pXMLDom = NULL。可是MS的例子确都用Release()。孰是孰非,我实践下来智能指针释放应该赋NULL。 相关文章: 2022-12-23 2022-01-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23