> From: manikumar [mailto:[EMAIL PROTECTED]]
> For storing Resources(Bitmap) you have to create the DB
> as Resource type. You have to give the ast parameter as True
> in the DmCreateDatabase ().
> Developers' Nation is the fastest, most reliable and
> affordable way to resolve your technical issues.

Actually no - you can store any bytes, including a bitmap, in a record db as
long as you don't mess up the bytes.  So that shouldn't be the problem here.

> "r zane rutledge" <[EMAIL PROTECTED]> wrote...
>    BitmapPtr  bitmap, bitmap2;
>    DmWrite(RecPointer, 0, &bitmap, BmpSize(bitmap));

This is an error - it's writing out the 4 bytes of the bitmap *pointer*
(plus a lot of other bytes nearby on the stack) instead of the pointed-to
bitmap data.  Should remove the '&' operator.  Also consider using a
variable name such as pBitmap or bitmapP that would make this more obvious.

-slj-


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