> Thanks Ben. First, a general question about this strategy. Won't the
> database be created out of heap memory? So I should only use this fo
> smaller databases, right?
No, using DmCreateDatabaseFromImage creates the DB on the storage heap.
The only issue is that you will have two copies of the DB in memory --
the one serialized into you app's resources and the one created from
that resource. If you don't need for users to beam the app around, you
can remove the original resource after its unpacked, leaving more
storage memory free.
Quote:> So I was able to create a Rez file that stuffs my .pdb into the
> application .prc (at least I think it works). You mentioned in your
> article (http://www.palmoswerks.com/stories/storyReader$46) that you
> used DmCreateDatabaseFromImage to unpack the database. I'm having
> trouble with this - I'm not sure how to create the MemPtr that
> DmCreateDatabaseFromImage needs as its argument. How do I set the
> MemPtr size? How do I point it at the resource?
DmGetResource will give you a MemHandle to the resource, then
MemLockHandle will give you a MemPtr.