exe Images not showing.

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
Benjamin100
ES Beta Backer
ES Beta Backer
Posts: 250
Joined: Tue Jul 19, 2011 9:37 pm

exe Images not showing.

Post 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
evilbunnie
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 8
Joined: Tue Sep 20, 2011 1:37 am

Re: exe Images not showing.

Post by evilbunnie »

Because your project is using incorrect paths. You have to include the image in the release folder too.
Benjamin100
ES Beta Backer
ES Beta Backer
Posts: 250
Joined: Tue Jul 19, 2011 9:37 pm

Re: exe Images not showing.

Post 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.
Benjamin100
ES Beta Backer
ES Beta Backer
Posts: 250
Joined: Tue Jul 19, 2011 9:37 pm

Re: exe Images not showing.

Post by Benjamin100 »

To Clarify, it does show text on the screen, which it is supposed to... but not the images from the bmp.
Post Reply