I hope I'm not being dense here. I can do this easily in regular C programming,
but I'm struggling with the concept in Palm programming.
Here are the errors I got:
src/wrk.c:2586: incompatible type for argument 1 of `MemMove'
src/wrk.c:2586: incompatible type for argument 2 of `MemMove'
Here is the code (line 2586 is indicated):
else // another item
{
tpq = (PQ *) MemPtrNew(order * sizeof(PQ));
tpq[order - 1].items = (ITEM *) MemPtrNew(item * sizeof(ITE
M));
cnt = item - 1;
for(i = 0; i < cnt; i++)
MemMove(tpq[i].items[i], pq[i].items[i], sizeof(ITEM));
tpq[order - 1].no_items = item;
// free memory for pq structure
MemPtrFree(pq);
pq = 0;
}
Thanks again.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/