Fernando Israel wrote:

Hi there,

The data manager function dmOpenDatabaseByTypeCreator takes three arguments: 
type, creator, and mode.
Are the first two, type and creator, based on some enum ?; following some 
samples I see them defined as 'Data' and 'Form', are these coming from 
somewhere ?

Thanks,
Fernando


When you create a database, you declare the type. You could call it 'data', 'Data', 'bmps',.. whatever you want, but it's best to keep the type something logical. Applications are of type 'appl' and are resource databases (*.prc) not data (*.pdb). Overlays are 'ovly', etc. You also declare the Creator, and this will usually be the same as the CreatorID of your app (that you registered with PalmSource). But again, you are free to declare anything that you like. If you declare the same CreatorID as some OTHER app on your device, then you can get into trouble if you don't know what that app will do with any databases with its CreatorID.

So, really, the Type and Creator could be anything.

When you want to open a database, you want to provide the info to dmOpenDatabaseByTypeCreator that it needs to find the database, and those are the Type and Creator that were declared when the database was created.

Bob.

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

Reply via email to