> 1. Open the PRC in the server application ( Win32 VB application on a
Win2K
> machine ) and send binary data to the connected palm. That palm could
store
> the information in a MemPtr and then create the prc using the
> DmCreateDatabaseFromImage() function.
>
> Problem? Would need a 400k ptr, which I don't think PalmOS will let you
do.
> Will it?
I'm not sure if DmCreateDatabaseFromImage will handle images greater than
64K.
To allocate more than 64K of memory in a single block, use FtrPtrNew --
note, allocating more than 64K using this call only works on PalmOS 3.5 or
later.
You should instead use ExgDbRead, part of the exchange manager. This isn't
documented in the 3.5 documentation, but its described in the 4.0 Reference
PDF, and it works on OS versions back to 3.0. It will let you instantiate a
database on the device from a memory buffer or from some other input stream,
using a callback to get the bytes of the PDB or PRC file. Very neat.
--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/