Error : cannot convert
'void *' to
'char'
FRPchecklist.c line 704 fieldP = MemHandleLock(fieldH);
This is what is in my C code:
static Err EditFormGetRecordField (MemPtr table, UInt16 row, UInt16 column,
Boolean editing, MemHandle * textH, UInt16 * textOffset, UInt16 *
textAllocSize,
FieldPtr fld)
{
UInt16 fieldNum;
UInt16 fieldIndex;
Char * recordP, fieldP;
MemHandle recordH, fieldH;
UInt16 fieldSize;
FrpDBRecordType record;
// Get the field number that corresponds to the table item.
// The field number is stored as the row id.
//
fieldIndex = TblGetRowID (table, row);
fieldNum = FieldMap[fieldIndex];
FrpGetRecord (AppDB, CurrentRecord, &record, &recordH);
if (editing)
{
EditFormSetGraffitiMode(fld, fieldNum);
if (record.fields[fieldNum])
{
fieldSize = StrLen(record.fields[fieldNum]) + 1;
fieldH = MemHandleNew(fieldSize);
fieldP = MemHandleLock(fieldH);
I had no problem when using SDK 3.1 which came with CW R6. I looked into
SDK 3.5 sample application Address.mcp to see what I was missing and could
not find any clue. Thanks.
Elizabeth Chang
ISSI Consulting Group
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html