At 05:58 PM 9/16/2003, Luc Le Blanc wrote:
Is the data stream format used by ExgDBWrite published? My app has to
beam either a whole DB or a subset of it. Even in the latter case, I
must send the AppInfoBlock along with the selected records. If  I could
emulate ExgDBWrite when beaming a subset of the DB, the receiving device
could always use ExgDBRead, no matter what case I'm in. Otherwise, since
my records are variable sized, I will have to prefix every ExgSend block
with length info to allow splitting the resulting file stream.

How can I control the name of the DB received with ExgDBRead? Does it
have to be the same as what is sent by ExgDBWrite or can it be changed
along the way (in the socket maybe)?

The data format used by ExgDbRead/Write is published -- it is the standard PRC/PDB format, as documented in the Palm OS File Formats book. I don't think you can use ExgDbRead to add records to a database, as it will always try to create a new DB. I think you need to use your own custom packing/unpacking format in order to do what you want.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to