can't load image from file : file does not exist Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
mariocarlucci
Earned a small fee
Earned a small fee
Posts: 11
Joined: Wed Sep 10, 2008 8:55 am

can't load image from file : file does not exist

Post by mariocarlucci »

Problem with wxdevcpp version 6.10.2 on WindowsXP, i'm using minGW as compiler.

Sorry for my Newbie's question ...and my english :
when i run sample code that work with some image or html file it give me an error message like this:
can't load image from file <filename>: file does not exist

Some of these examples are:
examples/wxWidgets/splash/
examples/wxWidgets/dragimag/
examples/wxWidgets/drawing/

i've checked out that the files are in the project directory of course,so what's missing?
mariocarlucci
Earned a small fee
Earned a small fee
Posts: 11
Joined: Wed Sep 10, 2008 8:55 am

i watched wrong folder!

Post by mariocarlucci »

solution:
exe file are created in a separate folder Ouput\MinGW\ images and all other stuff must be put in this folder or, as an alternative, you must copy the executable in the source folder
Sof_T
Can't get richer than this
Can't get richer than this
Posts: 864
Joined: Thu Jul 28, 2005 9:48 pm
Location: New Forest, United Kingdom
Contact:

Post by Sof_T »

You can change the output location for the executable under the project options to get it in the right place for your images.

Sof.T
The home of Sof.T http://www.sof-t.site88.net/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/
Post Reply