Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Load Of Resources Failed. Why?  (Read 5490 times)

0 Members and 1 Guest are viewing this topic.

ŽOŠK

  • Guest
Load Of Resources Failed. Why?
« on: April 29, 2007, 07:33:33 AM »
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?