On Thu, Sep 28, 2000 at 11:02:54PM -0400, PalmOS wrote:
> Is there a way I can package .PDB files into a .PRC
> (as resource records) and then recreate them as
> Palm databases when the program is run using
> DmCreateDatabaseFromImage?  How is this done?

Yes, if all databases are less than 64k.  You can use any resource
type and ID (e.g. I use "cord" resources for my concorde program)

Basically you simply take the .pdb image and save it off as an image.
If you use prc-tools, just rename it to RSRCnnnn.bin and add it to the
list of .bin files to be merged.

Then lookup the resource by the type and ID (you will need to open the
Database if the .prc is separate), then lock the handle, then do the
DmCreateDatabaseFromImage on it.

If you have a DB over 64k, you can break it apart and maybe use
ExgDBWrite and feed the resource pieces to the callback.


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

Reply via email to