DmQueryRecord returns a handle. When you lock that handle, you get a Memory
Pointer - essentially a void*. Simply cast it to whatever you need.
The code in your previous message was in error.
WChar textP;
recordH = DmGetRecord(gDatabase, index);
record = MemHandleLock(recordH);
StrCopy(textP, record);
Should be:
Char* textP; // note: this is just a pointer, you need to reserve
space.
textP = MemPtrNew(size);
// or: Char textP[size];
MemHandle recordH = DmGetRecord(gDatabase, index);
Char* record = (Char*)MemHandleLock(recordH);
StrCopy(textP, record);
--
-------------------------------------------------------------------------
Free software - Baxter Codeworks www.baxcode.com
-------------------------------------------------------------------------
"Barry Jaques" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> So my question is "What form of data is produced by DmQueryRecord and if
it is
> not a Char then how do I go about converting it to Char format"?
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/