> 3. I've seen programs that are "huge" (256K) that contain entire
electronic
> books built into the .prc file. I assume that the data is being embedded
in
> the resources somehow. I haven't found any kb articles on using an app's
> resource as a data repository. If this can be done, can you point me to
> additional information?
I can't speak to the ebooks, but that's what I did in one of the apps I
wrote. Basically I needed a lot of simplistic data that was best calculated
on the PC ahead of time (essentially a series of floating point #s). I used
a perl script to do the calculations and then take care of the "endianness"
of Palm and then used pilrc to create DATA resources from them /w my own
resource ID.
Then when I needed them I used DmGetResource and MemHandleLock to grab a
pointer to the resource I cared about and casted it to (in this case) a
float * and used it as an array. I imagine you could do something similar.
The hardest part will be generating the data for inclusion.
This of course all implies read-only data, but in theory you could read the
resource and then change/write it back, but you'd have the same problem of
holding the 3k in memory while doing so (although you could do tricks with
DBs and such to avoid that).
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/