Been looking at tinyxml and tried it out in my project. Problem is for the filename I have to do this: "Release/newfile.xml" or "Debug/newfile.xml" instead of just writing "newfile.xml". How do I set up Visual Studio 2005 to correct this?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thats not really a TinyXml question, just a MSVC question.
One option is to build both the release and debug executables to one directory, naming the binary appropriately, e.g. myapp.exe and myappd.exe.
Another option is to put all your XML files in some sensible directory and name the full path whenever you run the app.
And finally, assuming you want to keep the release/myapp.exe and debug/myapp.exe directory separation, the answer is that you configure MSVC to run your app after first going to a the directory where you put your XML files.
In short, right click on your app in the solution explorer, select properties, go to Configuration Properties > Debugging (do this in both the debug and release build modes) and put in the appropriate directory, e.g. $(InputDir) or $(InputDir)/data or whatever you choose.
HTH
Ellers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys,
Been looking at tinyxml and tried it out in my project. Problem is for the filename I have to do this: "Release/newfile.xml" or "Debug/newfile.xml" instead of just writing "newfile.xml". How do I set up Visual Studio 2005 to correct this?
Thanks!
Thats not really a TinyXml question, just a MSVC question.
One option is to build both the release and debug executables to one directory, naming the binary appropriately, e.g. myapp.exe and myappd.exe.
Another option is to put all your XML files in some sensible directory and name the full path whenever you run the app.
And finally, assuming you want to keep the release/myapp.exe and debug/myapp.exe directory separation, the answer is that you configure MSVC to run your app after first going to a the directory where you put your XML files.
In short, right click on your app in the solution explorer, select properties, go to Configuration Properties > Debugging (do this in both the debug and release build modes) and put in the appropriate directory, e.g. $(InputDir) or $(InputDir)/data or whatever you choose.
HTH
Ellers
Thaanks Ellers. The last method was what I was looking for.