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.
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.