SFML community forums

General => General discussions => Topic started by: undertech on July 28, 2009, 09:41:12 am

Title: Suggestion for Visual Studio Setup tutorial
Post by: undertech on July 28, 2009, 09:41:12 am
Hi Laurent,

I've noticed that there are some questions here regarding LoadFromFile() not working properly and I'd wager that many of those are from Visual Studio users.
Just in case people are not aware, if you are able to load the files properly by directly running the executable (i.e. double-clicking in Windows Explorer, not by pressing F5 in VS) then the code is probably okay.
If you wish to debug with the VS debugger, then the Working Directory option in Project->Configuration Properties->Debugging needs to be set to the directory with the executable. So in Debug mode this would be Your Project Directory/Debug (probably).
Obviously you'd need to do this after you've built your project at least once successfully, so that the Debug directory actually exists.