Say - how would I load an image that is in a file on the device but is not in the resource The files I need to present are in JPG but may also be BMP or GIF. Thanks.

Re: Smart Devices Native C++ Development Load image from file that is NOT in resource

Christopher Fairbairn


Depending upon your platfrom you may be able to make use of the SHLoadImageFile API (as documented on MSDN at http://msdn2.microsoft.com/en-us/library/aa455003.aspx)

It's usage is quite straight forward:

HBITMAP hbmp = SHLoadImageFile(_T("\\path\\to\\my\\image.png"));

Hope this helps,

Christopher Fairbairn