Hi everyone,

Could anybody give me some sample codes on using ExgDBWrite() and
ExgDBRead(). I have the code "Beaming the whole database", taken from the
palm.com/devzone/knowledgebase. ExgPut() ExgSend(),etc. are used with
ExgDBWrite().

I just need to use ExgDBWrite() and ExgDBRead().
As I understand from reading the Palm OS SDK, page 845,
in the callback function
Err WriteProc(const void* dataP, UInt32 *sizeP, void* userdataP)
dataP is the data, placed there by ExgDBWrite(),
*sizeP is the number of bytes.

The SDK book says that WriteProc() will be call multiple times untils it
transmits all the data. If in the callback function, I do not assign
anything to *sizeP, sizeP still holds the value of total bytes of data, is
the callback called only once? I debug the program and the callback function
WriteProc() is called many times.  Everytime, *sizeP is different (72, 10,
6, 10, ect..) I expect *sizeP to be a lot bigger (at least the size of the
database in Palm).

Am I missing something when I try to use ExgDBWrite()? I look at the raw
data (dataP, the 1st parameter in WriteProc()) and it doesn't look the same
as the raw data in the .PRC or .PDB file at all.

I don't know what to try, please help. Thank  you very much.
tnn


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

Reply via email to