You can't import the new PRC because it has the same database name as the current application database, so rename the current application database to "My App Backup" or something. Call SysCurAppDatabase() to get the LocalID of the current application database, then call DmSetDatabaseInfo() to rename it. Import your new PRC. Call SysUIAppSwitch(). To delete the old copy of your application, check for "My App Backup" at startup and delete it. This works for me, but YMMV.

Russell Cagle
Handheld Developer, Partner Software

Larry wrote:
Does anyone know how to have an application install a newer version of
itself and restart (assuming the new PRC file could be received using netlib
functions)?

Is there some code examples or third-party offering?







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

Reply via email to