Does recHandle point to enough memory to retrieve the record?

----- Original Message -----
From: "Alexandre Barreto" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 6:42 AM
Subject: How can i read a record in a database?


>
>
> i knw this is a neebiew question...but i'm a newbie in palm programing :)
>
> i'm trying to read a record byte by byte...how can i do that
> i doing the following, but i'm doing it worng cause i'm reading the low
> memory instead of the record...
>
> img = DmOpenDatabaseByTypeCreator('IMGD','MOST',dmModeReadWrite);
> recHandle = DmGetRecord(img,0);
> ImagemP = MemHandleLock(recHandle);
>
> for(I=x;I<=x+14;I++)
> {
> for(J=y;J<=y+20;J++)
> {
>   WinSetForeColor((int)ImagemP[Z]);
>   WinDrawPixel(I,J);
>   Z++;
> }
> }
>
>
> i get osme canot convert opaque sometimes...
> i just need to read the record i chose byte to byte ... maybe puting it on
a
> vector duno..
> how i do that?
>
> Thanx a lot
>
> _________________________________________________________________
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>




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

Reply via email to