Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Images not loading in Visual Studio debug mode  (Read 1776 times)

0 Members and 1 Guest are viewing this topic.

Battleapple

  • Newbie
  • *
  • Posts: 10
    • View Profile
Images not loading in Visual Studio debug mode
« on: December 26, 2013, 08:04:34 pm »
Info:
Visual Studio 2013
Win 7
SFML 2.1

Whenever I start a (self made sfml) programm through windows visual studio
(after completing it ) ,the images won't load.
However,if I start the .exe myself, everything works flawlessly.
Is there anything I can change in the project or debugger settings ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Images not loading in Visual Studio debug mode
« Reply #1 on: December 27, 2013, 01:04:37 am »
Where did you put the images?

Visual Studio's default working directory is set next to the project file, while when you double click an exe it's set to the exe's location. You can change the working directory in the project settings.

Also this question has been asked many, many times, did you even try to search?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Battleapple

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Images not loading in Visual Studio debug mode
« Reply #2 on: December 27, 2013, 01:37:49 pm »
First of all:Thank you for giving me the answer.
I used the forum search button but couldn't find anything related.
If this question was already asked im deeply sorry for this  :(

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Back to C++ gamedev with SFML in May 2023

 

anything