Hi,

>>I have no idea about what the ExgDBWrite is sending me in the
>>ExgDBWriteProcPtr() function:

It pass buffer with binary data, size of buffer, and pointer to
userDataP.=20
A1: It is not a struct. As said in SDK:
"This function converts a Palm OS formatted database on the storage heap
into a stream of bytes" it means that if you send all data over TCP or
save it to SD card as file you get complete table (struct of palm files
one can find somewhere at:
http://www.palmos.com/dev/support/docs/ in file  "FileFormats.pdf")=20


A2:
If your write function can only done 1024 bytes you should set
*sizeP=1024.

I use this function to calculate size of all data I heve to send over
TCPIP:

Err dbFileSize(const void* dataP, UInt32* sizeP, void* userDataP)
{       UInt32 sss;
        UInt32 *zzz;
        sss =3D *sizeP;
        zzz =3D userDataP;
        *zzz +=3D sss;
        return 0;
}

error =3D ExgDBWrite(&dbFileSize, SizeP, "TableName", NULL, 0);

I hope it helps you out...


Regards,
Gregory.

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

Reply via email to