Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (caominhim):

visual studio help I'm using SFML in Visual studio 2013 to generate a window with an image. when i execute the .exe by itself everything works but when i run it through VS it generates a window with a black background. Anybody have any ideas why?

OpenStudy (caominhim):

OpenStudy (e.mccormick):

Did you install and test SFML as it talks about here? http://www.sfml-dev.org/tutorials/2.2/start-vc.php Because it sounds like the library is on your system, but not like it is really known to VisualStudio.

OpenStudy (caominhim):

i found it. VS searches for resources with the .cpp files and not with the .exe. I just had to place the .png with the .cpp files. Extra note, if you are writing a windows program you can switch it to a console program from project properties > linker > system > subsystem

OpenStudy (e.mccormick):

Ah, yes. A path issue. That would certainly do it.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!