USING BITMAP FILES AS A RESOURCE (by Roy)
USING BITMAP FILES (by Roy)
HI Jonathan
Thanks I managed to get it working. I am at the next objective which is to use bitmaps that I have created instead of the standard ones which I used initialy.
I have managed to create pictures.RESX file using the Resourcer program. This created a file which contains all the bitmap files.
I have also managed to include this into my program using the resource facility in Visual C++ . I can view the bitmap files using the resource viewer.
What I am trying to do at the moment is access these bitmap files in the program.
I saw an example where I was told to define the bitmaps as:
#define IDB_BTN0 3000
I will enclose the Ldmicro.cpp file . The Bitmaps are named Btn0.bmp , Btn1.bmp etc
I had everything working with the standard bitmaps My code is near the end of Ldmicro.
I can compile okay but can't see the bitmaps when I run the program
I am not sure if it is as simple as defining it with a number or there is more code needed. Do I need to refere to the resource file name somewhere ?
Thanks
Roy