Ask your own question, for FREE!
Computer Science 20 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!
Latest Questions
Breathless: Spooky witch but cute
1 hour ago 1 Reply 0 Medals
Arriyanalol: help
22 seconds ago 9 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
20 hours ago 5 Replies 3 Medals
Jaded012023: Please tell me what you all think of this song
1 hour ago 6 Replies 1 Medal
Arriyanalol: bro how
1 hour ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
20 hours ago 12 Replies 2 Medals
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!