Guilherme C. Hazan wrote:
Hi Ardiri,
Thanks. Humm... this will require me to parse the prc file instead of
"dumbly write" it.
I think that a prc file is also a pdb file, but only with a special
header. Am I right? Are there any specifications of the prc file out there?
best
guich
This is where you want to use ExgDBRead. It will 'parse' the prc/pdb
file for you, and store it as a Database in RAM.
You pass 2 function pointers, The first will 'read' the data from the
network (or exchange socket) for the OS, the second is called if the
database already exists and needs deleteing.
Your 'read' function is passed a buffer and size. You need to copy into
this buffer as many bytes as the OS has asked for.
Typicaly it will first ask for 72 bytes. This is the normal PRC/PDB
header, containing DB Name, creator, type etc..
You will then get called for the record/resource list
And finaly for each of the records/resources.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/