Hi,
I've got an application for which the user can load one or more databases
onto his handheld. At run time, he picks one of these databases for
processing. Based on the database he picks, I want to display, a different
bitmap. For example:
Datatabase1.pdb would display Bitmap1
Datatabase2.pdb would display Bitmap2
...
DatatabaseN.pdb would display BitmapN
All of the bitmaps are the same size, but contain different images.
The problem is that I do not want to store all of the bitmaps in the
application's resources. I want to be able to add databases without having
to recompile the program (to add new resources).
What I want to do is to somehow make each database's 0-th record be the
binary representation of the appropriate bitmap. So I need:
1. A way to convert a .bmp file info a single .pdb record
2. A way to take a single .pdb record, make a bitmap out of it, and display
it on my form
Anybody have any advice (or better yet, sample code! :-) on how to do this?
Thanks in advance!
Tom
P.S. What's your opinion? If somebody posts a helpful reply, is it better to
waste bandwith and make this forum longer by saying "Thanks!", or better not
to?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/