From: cem on 12 Oct 2006 02:23
I put a png file into resource and use CImage::LoadFromResource(
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 12 Oct 2006 06:49
"cem" <cemdegirmenci(a)gmail.com> wrote in message
> 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.
Author MOZART the music processor for Windows -
For discussion/support see