What we do here is store the database image in a File Stream database, and then use ExgDBRead (to wich we provide a reader function to read the stream) to import it.

Jerome


Russell Cagle wrote:
You can call DmCreateDatabaseFromImage(). The problem with that function is you need the entire PRC file in one contiguous piece of memory, which isn't always easy to do. If the PRC is larger than 64k, you can allocate feature memory with FtrPtrNew(), and if you only support OS 5 devices then you can allocate more than 64k, I think. If you can depend on having an SD card, I would recommend writing the PRC to a file and calling VFSImportDatabaseFromFile(). Finally, the PRC database format is very simple, just a header and a bunch of indexes, and you can parse it yourself if none of these solutions work for you. Google "PRC file format".

Russell Cagle
Handheld Developer, Partner Software

Larry wrote:

how does the newly downloaded PRC get imported/inserted into the device's application storage?

Can the downloaded PRC file be directly inserted into a resource database or do I have to "parse" it and write the pieces individually?
Can you point me to any code samples or documentation?

thanks





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

Reply via email to