Page 1 of 1

exe Images not showing.

Posted: Thu Sep 29, 2011 1:21 am
by Benjamin100
Hey,
using code blocks.
When I'm in debug mode and build and play I see my bmp image, but when I release it as an exe, and put all the necessary .dll files in, and the bmp in, it seems it won't load the bmp. Should I not be using SDL_LoadBMP? It seemed to work fine until a targeted it for release and built and ran it.

-Benjamin

Re: exe Images not showing.

Posted: Thu Sep 29, 2011 1:26 am
by evilbunnie
Because your project is using incorrect paths. You have to include the image in the release folder too.

Re: exe Images not showing.

Posted: Thu Sep 29, 2011 1:28 am
by Benjamin100
I did include it in the release folder. Also, I tried with the wrong file name, and it acted different. It closed.
This opens the window up, but it is all blank. Unlike debug.

Re: exe Images not showing.

Posted: Thu Sep 29, 2011 1:31 am
by Benjamin100
To Clarify, it does show text on the screen, which it is supposed to... but not the images from the bmp.