atl加入MarkupMSXML出错 在线麻烦进来看看 谢谢

thdxs 2013-09-27 09:27:11
感觉是缺少什么头文件 麻烦大家帮忙看看 谢谢


E:\vc\COM\MarkupMSXML.h(50) : error C2146: syntax error : missing ';' before identifier 'FromBSTR'
E:\vc\COM\MarkupMSXML.h(52) : error C2146: syntax error : missing ';' before identifier 'FromVARIANT'
E:\vc\COM\MarkupMSXML.h(52) : error C2086: 'CString' : redefinition
E:\vc\COM\MarkupMSXML.h(65) : error C2146: syntax error : missing ';' before identifier 'GetTagName'
E:\vc\COM\MarkupMSXML.h(65) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(65) : warning C4183: 'GetTagName': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(66) : error C2146: syntax error : missing ';' before identifier 'GetChildTagName'
E:\vc\COM\MarkupMSXML.h(66) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(66) : warning C4183: 'GetChildTagName': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(67) : error C2146: syntax error : missing ';' before identifier 'GetData'
E:\vc\COM\MarkupMSXML.h(67) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(67) : warning C4183: 'GetData': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(68) : error C2146: syntax error : missing ';' before identifier 'GetChildData'
E:\vc\COM\MarkupMSXML.h(68) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(68) : warning C4183: 'GetChildData': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(69) : error C2146: syntax error : missing ';' before identifier 'GetAttrib'
E:\vc\COM\MarkupMSXML.h(69) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(69) : warning C4183: 'GetAttrib': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(70) : error C2146: syntax error : missing ';' before identifier 'GetChildAttrib'
E:\vc\COM\MarkupMSXML.h(70) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(70) : warning C4183: 'GetChildAttrib': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(71) : error C2146: syntax error : missing ';' before identifier 'GetAttribName'
E:\vc\COM\MarkupMSXML.h(71) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(74) : error C2146: syntax error : missing ';' before identifier 'GetResult'
E:\vc\COM\MarkupMSXML.h(74) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(74) : warning C4183: 'GetResult': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(75) : error C2146: syntax error : missing ';' before identifier 'GetError'
E:\vc\COM\MarkupMSXML.h(75) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(92) : error C2146: syntax error : missing ';' before identifier 'GetDoc'
E:\vc\COM\MarkupMSXML.h(92) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(107) : error C2146: syntax error : missing ';' before identifier 'GetSubDoc'
E:\vc\COM\MarkupMSXML.h(107) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(107) : warning C4183: 'GetSubDoc': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(110) : error C2146: syntax error : missing ';' before identifier 'GetChildSubDoc'
E:\vc\COM\MarkupMSXML.h(110) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(110) : warning C4183: 'GetChildSubDoc': member function definition looks like a ctor, but name does not match enclosing class
E:\vc\COM\MarkupMSXML.h(128) : error C2146: syntax error : missing ';' before identifier 'Transform'
E:\vc\COM\MarkupMSXML.h(128) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(135) : error C2146: syntax error : missing ';' before identifier 'm_strResult'
E:\vc\COM\MarkupMSXML.h(135) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(135) : error C2501: 'm_strResult' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(136) : error C2146: syntax error : missing ';' before identifier 'm_strDefaultNamespace'
E:\vc\COM\MarkupMSXML.h(136) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(136) : error C2501: 'm_strDefaultNamespace' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(142) : error C2061: syntax error : identifier 'CString'
E:\vc\COM\MarkupMSXML.h(144) : error C2146: syntax error : missing ';' before identifier 'x_GetPath'
E:\vc\COM\MarkupMSXML.h(144) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(145) : error C2146: syntax error : missing ';' before identifier 'x_GetTagName'
E:\vc\COM\MarkupMSXML.h(145) : error C2501: 'CString' : missing storage-class or type specifiers
E:\vc\COM\MarkupMSXML.h(146) : error C2146: syntax error : missing ';' before identifier 'x_GetData'
E:\vc\COM\MarkupMSXML.h(146) : error C2501: 'CString' : missing storage-class or type specifiers
...全文
109 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Ahh_Freshmeat 2013-09-27
  • 打赏
  • 举报
回复
引用 1 楼 hdt 的回复:
没用过那个类库, 猜想:atl没有打开mfc支持
我也感觉就是缺少什么支持 我试过use mfc in static way 也不行 还是报错
真相重于对错 2013-09-27
  • 打赏
  • 举报
回复
没用过那个类库, 猜想:atl没有打开mfc支持
woshiwenqiang 2013-09-27
  • 打赏
  • 举报
回复
用到MFC相关的类你得添加MFC支持啊~

3,245

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧