Coincidentally I just finished up my changes to PocketFrog to use SHLoadImageFile and SHLoadImageResource.
These changes work without requiring any extra stuff, including the IImagingFactory interface. Since both of the SHLoadImage functions return HBITMAPs, and there's already a CreateSurface() function that takes an HBITMAP, it's much cleaner this way.
A couple of notes:
1) Download the right version ( PF 0.7 or 0.8 )
2) SHLoadImageResource only seems to look for images in a "GIF" resource folder... pretty flippin' ignorant of Microsoft... so I changed the default from "image" to "GIF" in image.h.
3) Only PPC 2002 and above support SHLoadImage, so you'll have to drop support for PPC 2000. (But I don't think anyone will have a problem with that.)
http://www.pocketadventures.com/downloa ... ge_src.zip
http://www.pocketadventures.com/downloa ... ge_src.zip
-John
[EDIT: The files at PM vanished, and the upload utility isn't working, so I'm hosting them at PocketAdventures.com.]
<a href="http://www.pocketadventures.com/travel.asp"><img src="http://www.pocketadventures.com/images/ttc_banner.gif" border="0"></a>