Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - USING BITMAP FILES AS A RESOURCE

(you are viewing a thread; or go back to list of threads)

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
Fri Sep 24 2010, 02:25:11, download attachment ldmicro.cpp
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):