Palm OS 4.0 supports beaming multiple databases using code something like
this:
MemSet(&socket, sizeof(socket), 0);
socket.name = "first database.pdb";
err = ExgPut(&socket);
if (!err)
{
err = ExgSend(...);
if (!err)
for (...)
{
socket.name = "another database.pdb";
err = ExgPut(&socket);
if (!err)
err = ExgSend(...);
if (err)
break;
}
ExgDisconnect(&socket, err);
}
Prior versions of Palm OS don't support beaming multiple databases. If you
try to beam multiple databases from a Palm OS 4.0 device to a device running
an older version, only the first database will come through.
If you need to support Palm OS 3.5 and older, your best bet is to beam a
single archive containing all the databases, compressed or not. If you know
that your app exists on the receiving device, you can have it break apart
the archive into its constituent databases. Otherwise, you'll need to make
the archive "self-extracting". This is trickier.
Note that in some cases you can get away without multiple databases by
storing default data in resources which are instantiated using
DmCreateDatabaseFromImage.
--
Danny Epstein
OS Engineer, Palm Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/