Hi. This can be done. I was in that discussion a while ago. The basic idea is simple: get all the data stored in the .prc as resources. If the data is bigger than 64k, you have to break it up into chucks. For example, in my application (ExBox, http://www.weirdwww.com/ExBox), I use fixed size 60K chunks. The program creates a Resource, for example 'JUNK' with id 0. This one serves as a header resource. It stores the necessary information such as total chunks, total size, and others. You then attach the data into chunks starting from id 1: with the chunk size specified. The last chunk will usually have smaller size.
As to how to get a .pdb into chunks, it is not too hard too. I use file streams as my data, it is easy. I just have to open the fs and read the stram. However, for normal palm pdb file, you may want look into ExgDBWrite and ExgDBRead. Use the former to get the data and store it into chunks and use later to get the data out and restore it back into the palm pdb. I hope this info can get you going. Max > -----Original Message----- > From: Kunal Taneja [mailto:[EMAIL PROTECTED]] > Sent: Monday, 7 January 2002 11:19 AM > To: Palm Developer Forum > Subject: How to attach a database to a .Prc file at runtime > > > HI All > I want to create a Prc file which functions as an archiver > So at runtime on the palm device it should be able to attach databases to > itself > and at a later stage extract the databases and put them on another Palm if > beamed > I read on the Palm Developer forum archives that this can be done using a > Resource > but How can i attatch a databases on the Palm to a .prc file. > and how will i detatch that particular database from the prc?? > one mre issues is that i have databases which are significantly larger in > size than 64 K > > Looking forward to any ideas\suggestions > Kunal > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/tech/support/forums/ > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please > see http://www.palmos.com/dev/tech/support/forums/ ===== -=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=- Got Palm? Get ExBox at http://www.weirdwww.com/ExBox to beam anything! __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
