You could use a professional library like LeadTools.  I just checked and 
they do handle PNG.  I don't know how fast the library works, but it gets a 
Yeah, I haven't made up my mind here. I've got some code based on GDI+ 
working, but I just hate to add that dependency. I looked at libpng for a 
bit and I couldn't even get it compiled. I didn't spend much time on it to 
be honest though.
I'm using detours and zlib in my DLL and just link those in statically to 
my DLL. Zlib uses a lot of deprecated functions though. I didn't feel like 
going through the code and changing them over to the _s functions.
Honestly, I really dislike 3rd party libs. I only used zlib because I 
*had* to compress some large resources, and I will keep it for some TTF 
resources, but I figured it would be better to use PNG over my 
prioprietary zipped up BMP format :). Although, thats essentially what a 
PNG file is.
"David Ching" <dc@remove-this.dcsoft.com> wrote in message 
news:Nhu1j.1282$AR7.690@nlpi070.nbdc.sbc.com...
"Tom Serface" <tom.nospam@camaswood.com> wrote in message 
news:D8D072B7-5425-49C6-B037-5EF7FCDDF995@microsoft.com...
I believe this one will also do PNG files:
http://msdn.microsoft.com/msdnmag/issues/01/10/c/
Unfortunately, OleLoadPicture() does not support .png images.  And GDI+ 
is very slow.  FWIW, CodeJock library which you can compile into your app 
uses libpng.  This seems the most promising.
-- David