> Error : illegal implicit conversion from 'unsigned > int' to > 'unsigned short *' > Starter.cpp line 291 MemHandle h = DmNewRecord( > dbRef, dmMaxRecordIndex, sizeof(DayMealDetails));
The function DmNewRecord expects a pointer to an unsigned integer, and you are passing in an unsigned integer. Try : UInt16 n = dmMaxRecordIndex; MemHandle h = DmNewRecord(dbRef, &n, sizeof(DayMealDetails)); As pointed out in the documentation, the variable n contains on return the index of the newly inserted record. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
