1.

Solve : Load Of Resources Failed. Why??

Answer»

I want to load a bitmap image in my C - program. So, I have a bitmap image - TEXT.bmp.
I also have this in a resource file(Images.rc):
TEXTBMP BITMAP "image/TEXT.bmp" (the file TEXT.bmp is in directory "image" which is in the current directory of the program)

In my "Main.c" file I use the FUNCTION "LoadBitmap" (hThisInstance is the current instance of the program" :
LoadBitmap(hThisInstance, "TEXTBMP");
After that I have one if OPERATOR which TELLS me if the resource cannot be loaded.

Finaly when I compile it appears the MessageBox that tells me "Load Of Resources FAILED."  So Why the resources in Images.rc can't be loaded?



Discussion

No Comment Found