home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
bitmap1.zip
/
READ.ME
< prev
next >
Wrap
Text File
|
1993-12-02
|
2KB
|
68 lines
Demonstration OS/2 Bitmap C++ Classes
These files contain two C++ classes:
bitmap Creates a bitmap and provides member functions
to draw the bitmap
bitmapfile Reads a .BMP file and provides member functions
that you can call to create a bitmap (see above)
from the file.
I wrote these classes as a starting point for a future OS/2 product
for animation. But, since I've found it useful whenever I needed
to display a bitmap or create one from a .BMP file, I thought I'd
upload them for others to see. Please note that I make no guarantee
that the code is correct and error-free; in fact, I haven't spent
any time "polishing" and thoroughly testing the code. For example,
I didn't write any copy constructors or assignment operators for the
classes (so don't try to copy one bitmap object to another!).
If you do find bugs, please let me know.
To develop the code, you need the IBM C Set++ compiler and the OS/2
Programmer's Toolkit. Simply type:
NMAKE -- to develop the program
APP1 -- to run the program
The test program (APP1.CPP) is quite rudimentary, and depends on finding
two bitmap files in its current directory: TEST.BMP, which it creates
as a resource bitmap, and TEST1.BMP which it reads as a file. You can
use any two bitmaps you like.
Before you run the program, you will also need to ensure that the
provided PRINTERR.DLL program is in your LIBPATH. I use a function in
this DLL (printerr, which is called by the pmassert macro) for runtime
error-checking.
If you have any questions or comments, please email me at:
Joel Barnum
70047,442
My company, Descriptor Systems, provides OS/2 and Windows programming
workshops including:
OS/2 Kernel Programming
PM Programming
Workplace Shell Programming
IBM User Interface Class Libraries Programming
Windows 3.x Programming
Windows NT Programming
Windows and C++ Programming with Borland's OWL or Microsoft Foundation
Classes
If you have any interest in scheduling a class, send me email or call me
at (319) 362-3906. Or send normal mail to:
Descriptor Systems
PO Box 461
Marion, IA 52302