Stadin, Benjamin wrote: > Is it possible to embed a pdb into the prc as resource? > I've a 800 KB encrypted pdb file which I generate for my > read only application and would like to ship only the prc.
What about just choosing your own resource type and then including each PDB record as a PRC record? The API would be a little different, but not hugely different, especially since it's read-only. You get back a MemHandle either way.
Of course, this approach doesn't scale well to multiple PDBs, since you'd have to think of a resource type for each one, but if you only have one PDB ever, it should be possible.
I use a similar tactic for my SXSW schedule application -- except that rather than generating a lot of records, I generate two resources -- an index resource and a data resource. The index has a list of fixed-length records, and I use that to point into one or more data blob resources for variable-length information.
This avoids lots of small items and works really well for quick access to read-only information.
-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
