读写xml时出错(错误C2059:语法错误:',') [英] Error while read-write xml ( error C2059: syntax error : ',' )

查看:151
本文介绍了读写xml时出错(错误C2059:语法错误:',')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



我试图在vc ++ 2005中通过msxml读取和编写xml。我通过在互联网上搜索来进行更改并添加属性



我在stdafx.h中添加以下两行:

  #importMSXML.dll
#include < msxml.h >



我在项目文件夹中添加msxml.dll,msxml.h和msxml.lib。编译后我得到以下错误1024次:



错误C2059:语法错误:','C:\Program Files \ Microsoft Visual Studio 8 \ VC\include \ comip.h



请帮帮我。我使用的是XP-SP3,VS2005。还建议我在我的项目中添加读写xml功能的一些链接

解决方案

你应该删除声明:



  #include   <   msxml.h  >   



考虑使用其他XML框架而不是MS。


使用 CXMLFile - 一个简单的C ++ XML解析器 [ ^ ]读取任何xml文件

Hello friends,

I am trying to read and write xml through msxml in vc++ 2005. I make the changes and add properties by searching this on internet

I add below two lines in stdafx.h :

#import "MSXML.dll" 
#include <msxml.h>


I add msxml.dll, msxml.h and msxml.lib in project folder. And after compiling I got below error 1024 times:

"error C2059: syntax error : ',' C:\Program Files\Microsoft Visual Studio 8\VC\include\comip.h"

Please help me for this. I am using XP-SP3, VS2005. Also suggest me some links by which I am adding the feature of read-write xml in my project

解决方案

you should remove the statement:

#include <msxml.h>


consider looking after an other XML-framework than MS.


Use CXMLFile - A Simple C++ XML Parser[^] to read any of the xml file


这篇关于读写xml时出错(错误C2059:语法错误:',')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆