Some of you may know that my FindFile app uses Ole to load and display image files - well, Ole has not kept up with the rest of the world. Some images are displayed incorrectly and some icon files would not display at all, so have replaced the Ole stuff with GdiPlus. An added advantage is that GdiPlus will deal with PNG's and TIF's whereas Ole did not.
I've used a minimum implementation of GdiPlus just to load and display images - all the rest is left out. So this example demonstrates how to use just the features you want. GdiPlus will deal with these formats - (wmf, dib, bmp, png, tif, gif, emf, jpg)
One can use the work done in my GdiPlus library that's on my web site to extract any parts that are required.
Have also added this example to my web site
http://www.johnfindlay.plus.com/pellesc/GdiPlus/GdiPlus.htmlJohn