• [C++] Visual studio debug cant open file, but in windows explorer it works
    2 replies, posted
Hi guys, Im trying to use SFML 2.1 to open a font. I used this code: [CODE] if(!font.loadFromFile("res\\arial.ttf")) // Set path to your font { return 1; } [/CODE] When I hit the debug button in visual studio, it says that it cant open the file. However, when navigate to the .exe in windows explorer and open it there, everything works fine. What can I do to fix this? Thank you. This shows my problem: [IMG]http://i1369.photobucket.com/albums/ag202/magnolium1/Untitled1_zps9f25aaae.png[/IMG] [IMG]http://i1369.photobucket.com/albums/ag202/magnolium1/Untitled_zps920a0815.png[/IMG]
it's likely due to the IDE not setting the working directory to where the executable is also post stuff like this in WDYNHW, it didn't need a thread
Sorry about that. I made my account not too long ago as you can probably tell
Sorry, you need to Log In to post a reply to this thread.