There is a db header attribute for readOnly. This prevents the DB 
from being opened in dmModeReadWrite. You can programatically set 
this bit by using the Dm[Get | Set]DatabaseInfo() calls.

***** Important note *****
You CANNOT successfully beam databases with the readONly bit set. We 
ran into this problem while writing a beaming application. a quick 
look at the sources and we realized that this is a due to a bug in 
the Exchange Manager in the way it handles databases received with 
ExgDBWrite(). I have sent a bug report in, so maybe in a future OS it 
will be (has been?) fixed.


Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293


>    This may be a silly question, but how do I go about creating a database
>that is readable, but not editable by a palm app (like a dictionary or
>online manual program)?  I'd like to first use it to create the database,
>then modify the source code so that the app only reads, then recompile.
> However, to load the new version of the app, I have to delete the old
>version, and this deletes the database.  Any tips on how to get around
>this?
>
>    Michael

Reply via email to