Ben Combee kindly answered:
>1) Create the new database.
>2) Iterate through the resources in the first database using DmResourceInfo
>and DmGetResourceIndex.
>3) Create identical record in new DB, then copy contents using DmWrite.


Ben:

Thanks for the assistance.

A few questions: are resources stored by index inherently in sequence? How do I know when I'm done? (i.e. Do I just iterate through, increasing the index value until I fail to get a new Resource and know I've gotten them all, or do I have to know something about the database, like I would if I was iterating by type rather than index?) [Sorry, lack of knowledge about the internal structure of the database, since they were built more by type and resourceID.]

Also, how do I know how big each resource is, in order to "create an identical record." I can handle the DmWrite, but I must be missing an API that gives the size of the individual resource, or some other more obvious way to get this info before I create a new resource. DmResourceInfo doesn't seem to give me this, unless it is somehow getable from what *is* given...

Best,
zane
-----
http://www.zanegames.com


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to