Menu

Filename - Point it to release or debug?

Ly Ho
2007-08-26
2013-05-20
  • Ly Ho

    Ly Ho - 2007-08-26

    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!

     
    • Ellers

      Ellers - 2007-08-26

      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

       
    • Ly Ho

      Ly Ho - 2007-08-27

      Thaanks Ellers.  The last method was what I was looking for.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.