> size = 100; > index = dmMaxRecordIndex; > h = DmNewRecord(dbPtr, &index, size); > ptr = MemHandleLock(h); > Offset = 0; > DmWrite(ptr, Offset, (const void *)PlateName, > StrLen(PlateName)+1); > err = DmCloseDatabase(dbPtr); > return true;
Why are you setting size to 100? Shouldn't it be based on the size of PlateName? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
