Hello everybody!
I'm new here and I have a stupid question.
I found Code:Blocks and I thought I give it a try.
I wanted to play around with SDL and made a little program, where some images are loaded and shown on the screen.
The problem is, when I compile and run it, the images are shown on the screen. But if I put the program exe out of the debug or release
folder to another folder and start it. The window is black and the images don't show up.
I have the images in the same folder as the program itself. But it seems as if the program couldn't find the images even if they are in the same folder.
So I wonder if I have to enable something, which let's the program "remember" where the files are.
My image loading function looks like this:
background = LoadImage( "backg.jpg" );
if i run it in code blocks everything is ok. But if i start the exe itself in Windows the image won't show up, although it's in the same folder as the executable.
Do I miss something?