At 10:54 AM 1/7/00 -0800, you wrote:
>Can 1 application read/write other Palm databases that are not directly
>linked to that application ?  For example can an application like Puma
>Satellite Forms read the Palm's Contact database that comes with the
>Palm ?

You can read/write databases from other applications.  

If you have the database name you do something like:

   UInt mode = dmModeReadWrite; // See SDK Vol 3 p.113 for modes

   /*
      Note that the first param to both functions is 
      the card no, which is for now, always 0
   */
   LocalID dbID = DmFindDatabase (0, databaseName);
   DmOpenRef dbR = DmOpenDatabase (0, dbID, mode);      

If you have the creator id and type id you can save some steps:

   UInt mode = dmModeReadWrite; // See SDK Vol 3 p.114 for modes.
   DmOpenRef dbR = DmOpenDatabaseByTypeCreator (typeID, creatorID, mode);

As for reading the Palm Contact database from SF, that's another kettle of
fish.  I don't believe there is any direct way to generically read
databases other than the one(s) attached to the SF app.  However, I believe
Gavin Maxwell has produced a SF Extension that provides access to the built
in palm databases.  His website is at http://www.pocketscience.com.au.

You also might want to check out the satellite forms developers forum.  You
can join at http://www.mediastorm.net/sf-talk.cfm.

Hope this helps.

Greg
Greg Winton
Bachmann Software and Services, LLC
http://www.bachmannsoftware.com
Software for Handheld & Wireless Computing
Authors of "Palm Programming", published by Macmillan/Sams
Home of Bachmann Print Manager, the only graphical printing solution for
the Palm
Computing Platform

Reply via email to