At 01:07 AM 9/22/2002 -0500, you wrote:
>I have a custom client/server application suite that my company and I have
>built, and I was wondering how feasible it would be to be able to update the
>program on the palm clients from a .prc stored on the server. That way
>clients could automaticalyl get a new version of the program simply by
>connecting to the server to recieve their usual inventory updates for the
>day.
>
>Could the .PRC be stored as a BLOB in the database then transferred to the
>palm, by the old version , written to the palm as an application then
>execution passed to it? This would be much simpler than to have all the
>mobile salespeople come into the main office to get the updated program.

Look at the ExgDBRead API call in the Palm OS API Reference.  I'd suggest 
using a separate updater stub program which would do the network 
communication, using this routine to create the new database on the device 
using this API.  You use the stub, because otherwise you wouldn't be able 
to overwrite your program when its running.

There is also DmCreateDatabaseFromImage, but its limited to a PRC file of 
64K or less, and may not work well for your application.


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

Reply via email to