Visual Studio 2005和Tinyxml - xml文件位置 [英] Visual Studio 2005 and Tinyxml - xml file location

查看:187
本文介绍了Visual Studio 2005和Tinyxml - xml文件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,我通过visual studio 2005(c ++)创建的Tinyxml文件保存在桌面上,而不是调试文件夹或程序的根文件夹中。

For some reason my Tinyxml file which is created via visual studio 2005 (c++) is saved on my desktop instead of the debug folder or in the program's root folder.

如果有人知道一些方法告诉vs2005保存tinyxml创建文件在其他地方?

if anyone knows about some way to tell vs2005 to save the tinyxml create file somewhere else?

我试过eclipse和它保存在程序的根文件夹中的文件,这是我想要做的。

I tried that with eclipse and it saved the file in the program's root folder, which is what I'm trying to do.

感谢。

编辑:
I'在做一个BHO(浏览器助手对象),这是一个附加的Internet Explorer。所以当我运行我的程序'exe'是iexplore.exe从c:\program files \Intenet资源管理器

I'm doing a BHO (Browser Helper Object), this is an add-on Internet Explorer. so when I run my program the 'exe' is iexplore.exe from c:\program files\Intenet Explorer

推荐答案

通常不应该希望将数据文件写入程序目录。而不是让输出目录的机会,你应该明确告诉TinyXml你想要的文件创建通过传递在整个路径,当你调用SaveFile。

You normally shouldn't aspire to write data files to your program directory. Rather than leaving the output directory to chance, you should explicitly tell TinyXml where you want the file created by passing in the whole path when you call SaveFile.

这篇关于Visual Studio 2005和Tinyxml - xml文件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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