Even changed the code to this
GetLastError() is convinced the image was loaded successfully cause it returns 0, but hndl recieves a NULL ... confusing!!Code:HANDLE hndl = LoadImage( NULL,TEXT("c:\\radar_bgrnd.bmp"),
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
DWORD err = GetLastError();
if (!hndl){
//MessageBox(hWnd, "Could not open file.", "File Error", MB_ICONEXCLAMATION);
PostQuitMessage(WM_QUIT);
}
BTW, why does MessageBox sends about 6 "File Error" message before the window closes?

