Hi, I have a bitmap located in the same directory as my program.
I compiled it successfully with my resource editor, specifying the identifyer as "PICTURE".
Then, in the program I declared a new HBITMAP variable "pic".
In "case WM_PAINT:" I did:
pic = LoadBitmap(hInst,"PICTURE");
if(!pic) {MessageBox(hwnd, "Failed To Load The Bitmap.", "Error",
MB_OK | MB_ICONEXCLAMATION);
return -1;
}
When the program starts up, the message box pops up, and of course, no bitmap!
Can anyone spot my mistake?



LinkBack URL
About LinkBacks


