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.
Smart Devices Native C++ Development
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.
Hi,
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