Hi, there.
I´m trying to run the code sample in the documentation that explains
how to use ExgDBWrite() to send a Database (either .PRC or .PDB)
In that sample, they use a socket structure to send something
to the Beamer application.
But I´d like to simply write the stream of bytes to a file, that is,
I don´t want to transport the file stream to any other device, just
to read that stream and keep it in memory, or generate a file.
While in the code sample they use the following:
if (!err) {
err = ExgDBWrite(WriteDBData, &exgSocket, NULL, dbID, cardNo);
err = ExgDisconnect(&exgSocket, err);
}
I´m just trying to use:
err = ExgDBWrite(WriteDBData, NULL, nameP, dbID, cardNo);
or
err = ExgDBWrite(WriteDBData, NULL, NULL, dbID, cardNo);
And, inside the WriteDBData (callback function)
I use something like:
Err WriteDBData(const void* dataP, ULong* sizeP, void* userDataP)
{
Err err;
...
somedata = (char*) dataP;
...
}
But the program can never get to execute the first instruction inside
WriteDBData().
I would welcome any suggestions.
Regards,
P. Ricardi
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/