>I am new to the palmos development and I don't know if I can use 1
creatorID
>for 1 app that uses more than one database, or if I should use a different
>creatorID for each database?
>I am developing an App that uses several modules, and each module uses it's
>own database - You could call it App's in an App, but it is actual modules.
You would definitely use the same creator ID for your app and all databases.
Each module could then use a different database "type". The type is as
similar datum to the creator ID, being a 4-character value defined as a long
integer constant, e.g.:
#define MY_DB_TYPE 'Mtyp'
You of course also have to define a unique name for each database. Since
database names must be globally unique, it is a frequent practice to make
your creator ID part of the name.
One reason for having everything with the same creator ID is that this is
how various other PalmOS features associate your app with your databases.
For example, when you delete an app from the launcher, it deletes ALL
databases that have that app's creator ID, which is what you generally would
want to do.
Doug Gordon
GHCS Software
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/