i'm using CW + POL to write a streaming file in a Palm app, using the POL CFile class (which calls FileOpen,FileWrite,etc) ...the Palm app just reads packets from a serial connection and just needs to save the data as one big block...henced why i used streaming file...
Sounds like a good use for them.
...for my conduit, using CDK 4.03, i can read in this block. i use the CHHMgr class -> palmRec(CPalmRecord) which reads this block. I noticed though, that the data pointer ( via palmRec.GetRawData() ) points 8 bytes before the actual data, the first 4 bytes make up "DBLK" (what does "DBLK" represent?) and then the next 4 bytes make up the size the data...no problem to get the data by moving the pointer 8 bytes ahead ( i just need to parse it and save to a flat file), but does this sound correct ? ...wondering if anyone else has done similar.
'DBLK' is a header that Palm OS uses to verify that the database is indeed a filestream. Your interpretation sounds correct, and also matches that used by the libprc library (part of the program par) that can read and write filestream PDB files.
i read the drawback of using streaming file is that i cannot backup the pdb to PC, is this correct ?
File streams are not backed up by the backup conduit, but you can manually back them up in your conduit.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
