> I'd like to open/read a .PRC file and I know I can't use FileOpen function. > Instead of it, I try DmOpenDatabase function (right choice?) but I have > problem to read for example only 15 bytes - I guess I have problem with > DmReadRecord function (expects index number of the record).
A prc file is a flattened form of a database, used to store Palm databases on desktop computers. When a prc file is installed on a handheld, it is unflattened into a database. This database is a list of resources. (If you started with a pdb file, the result would be a database that contains records instead of resources.) Each resource has a type, an ID, and contents that vary depending on the type. For example, most applications have at least one 'tFRM' resource describing the layout of a form. The unflattened database no longer occupies a contiguous chunk of memory (or disk). If you want to turn a database back into a flattened prc or pdb file, you can do this using ExgDBWrite. This function is used by Launcher when you beam an application. To learn more about Palm databases, read the Companion, volume 1, chapter 7 - the Data Manager. To learn more about ExgDBWrite and its opposite, ExgDBRead, see the Reference, chapter 58 - the Exchange Manager. These references are in the latest (or nearly latest) versions of the docs - get them if you don't have them already. -- Danny @ PalmSource -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
