I'm building an application that lets a use choose from a list of installed
databases (pdb files), display a bitmap from that database, and do other
things with the rest of the data.  I think the application is all right, but
I'm having trouble building the pdb file such that I can display the bitmap.

The code snippet which displays the bitmap from the record is as follows:

MemHandle mBlock;
BitmapPtr pBitmap;

    mBlock = DmGetRecord(FFDEquipDB,1);
    if (mBlock != NULL) {
        pBitmap = (BitmapPtr) MemHandleLock(mBlock);
        WinDrawBitmap(pBitmap, 0, 0);
        MemHandleUnlock(mBlock);
        DmReleaseRecord(FFDEquipDB,1,false);
   }
I guess my question is what sort of conversion do I need to do on the bytes
of the windows .bmp file before storing it in the pdb record so that this
code will work?

Thanks for your help,
Don



-- 
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