--On 01 August 2001 10:55 +0800 Dylan Wee Kiat Cheong
<[EMAIL PROTECTED]> wrote:
> Is there anything wrong with the way i insert database records....
>
> MemHandle newRecordh;
> MyRecordStructure* newRecordP;
> MyRecordStructure newRecord;
> DmOpenRef iccDB; //reference to the DB, created already
>
>
> newRecordh = DmNewRecord(iccDB, &dbCursor, sizeof(newRecord));
> newRecordP = MemHandleLock(newRecordh);
>
> DmWrite(newRecordP, 0, &newRecord, sizeof(newRecord));
>
> MemHandleUnlock(newRecordh);
> DmReleaseRecord(iccDB, dbCursor, true);
What is the value of dbCursor, it should be 0xffff or dmMaxRecordIndex in
order for the db manager to add the record to the end of the database...
IM :-)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/