Im working on a Win32 program in C, and this function below worked on another program, but it wont work on mine and it just goes down to the error message. Heres the function
hSplashBMP = LoadBitmap(hInstance, MAKEINTRESOURCE("STP_LOGO_NEW.BMP"));
if (!hSplashBMP)
{
MessageBox(NULL, "Failed To Load Bitmap", "Error", MB_OK | MB_ICONERROR);
return 0;
}
I used the debugger, and it states that hSplashBMP cannot be evaluated. I dont understand why that is. STP_LOGO_NEW.BMP is in the same directory as the program, and i tried putting the entire path, but I got the same thing. anyways, i hope someone can help.
Thanks