From: cem on
Hello,
I put a png file into resource and use CImage::LoadFromResource(
resourceID )
This does not work
Is there a way to put a png into resource and display it correctly?

Thanks for answers

From: David Webber on

"cem" <cemdegirmenci(a)gmail.com> wrote in message
news:1160634193.482200.50080(a)e3g2000cwe.googlegroups.com...

> Hello,
> I put a png file into resource and use CImage::LoadFromResource(
> resourceID )
> This does not work
> Is there a way to put a png into resource and display it correctly?

Only if you have it as a general binary resource and have code to decipher
it, I would suspect.

The .bmp and .ico formats are the ones Windows knows about as resources.
Why do you need .png?

There's a free third party library called FreeImage which IIRC will read
..png from files.

Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm