> ... the ExgDBRead function calls
> the DeleteProc function to try and delete the original PRC in ROM since
I'm
> trying to write the same named file out to RAM.
Try passing ExgDBRead your own DeleteProc that just says "sure, I deleted
it, yah - that's it", but doesn't actually delete anything. I'm not sure,
but I think ExgDBRead will proceed normally. It calls DmCreateDatabase,
which only checks that such a database doesn't exist in RAM, so it should be
okay.
Another alternative is to copy the database record-by-record (or
resource-by-resource). If it's your own database, and you know it doesn't
have sort-info or app-info blocks, this is pretty easy. In your case, I
think it's an application, so all you have to handle is copying resources.
There are Data Manager functions to count resources, retrieve resource info
and data, and create resources. Put them together and you have a copy
routine.
DmNumResources
DmResourceInfo
DmGetResourceIndex
DmReleaseResource
DmNewResource
and of course, DmWrite
--
Danny @ Palm
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/