Click to See Complete Forum and Search --> : LoadImage


nitinsj
July 22nd, 2002, 02:58 AM
Hi,
I want to load image from a Bitmap file. I used the following code to do that

CString szBmpPath = "c:\\test.bmp";
HBITMAP hBmpBanner = (HBITMAP) LoadImage(NULL, szBmpPath, IMAGE_BITMAP,0, 0,LR_LOADFROMFILE )))

I got the error LR_LOADFROMFILE undeclared identifier. So I tried searching for the declaration in the winuser.h file where it was supposed to be according to the Documentation provided with eVC. But found that only one constant LR_DEFAULTCOLOR was declared and that was the reason for the error. Can any one tell me where the other constants are gone that are specified in the Documentation ?

Is there any other method to load a bmp image from the file on WinCE using eVC ?

Regards
nitin.

kandukondein
July 22nd, 2002, 12:01 PM
Please use imgdecmp.dll and VOImage for that.
It is a free library that can be downloaded from

http://www.pocketpcdn.com/libraries/#voimage

As far as LR_LOADFROMFILE even i got the error.Someone suggested that the win sdk needs to be updated. i could not figure out more than that.

Regards
Kandukondein