SFML community forums

Help => General => Topic started by: KraXarN on June 16, 2016, 05:34:36 pm

Title: Can't load files from Visual Studio
Post by: KraXarN on June 16, 2016, 05:34:36 pm
Hello!

So just started using SFML, but when I try to load a file and debugging from Visual Studio 2015 it just gives an error that it "couldn't open stream". When launching the exe file directly, it can load the asset and use it just fine. No clue what's going on.

Thanks!
Title: Re: Can't load files from Visual Studio
Post by: eXpl0it3r on June 16, 2016, 05:59:43 pm
The working directory is by default set next to the project file when starting from inside of Visual Studio, but when you start the exe directly, the working directory is set to where the exe is located.
You can change the working directory in the project settings if wanted.
Title: Re: Can't load files from Visual Studio
Post by: KraXarN on June 16, 2016, 06:02:48 pm
Yup, that was it! Thanks a lot :)