On Wed, 21 Nov 2001, Ben Combee wrote: > > Is it possible to open and read an exiting PRC or PDB as a stream, > > using the function "FileOpen" ? > > No.
actually :) ... *g* if you want to read an existing .pdb or .prc file, then, its not possible to open it with "FileOpen" without converting it to the internal File Streaming format.. but, if you are generating the files on your PC specifically for use with FileOpen - then, its possible :) the File Streaming API uses standard resource databases to store its files.. each block is 4096 bytes and has a prefix of "DBLK" - many moons ago i reverse engineered this for a project i was working on.. there are other tricks you can use too! i believe a .prc or .pdb file in palm ram is NOT FRAGMENTED. :) (at least, each resource chunk isn't). you can get a reference to the start of your .pdb and read it from there using a pointer. [its possible, but, may change in future versions of the os] we do this in liberty for example, to lock down the chunks of the gameboy rom (which, can be 1Mb in size) - we dont use FileOpen but, we can pretty much read/write any chunk from within the .pdb good luck :P // az [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
