Hi all. I was wondering whether it is possible to convert a bitmap resource 
and/or a database record to ASCII text? Right now, I am doing the following 
to get a pointer to a bitmap resource:

Handle  bufH;
BitmapPtr myBitmapPtr;

bufH = DmGetResource( bitmapRsc, myPicture );

myBitmapPtr = MemHandleLock( bufH );

How would I go about implementing a function such as:

void encode (Handle bufH, CharPtr output)

where bufH contains the binary data and CharPtr output will be used to store 
the encoded ASCII text?

Any help on this will be most appreciated. I will really like to know if 
anyone has ever done such a thing before and if possible e-mail or post an 
example source code of doing this.

Please forgive me if this sounds like a stupid question. I am very new to c 
programming and the guys at the c newsgroup weren't very patient with my 
questions.

Thanks guys.

--Fabrizio



________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to