Subject: Re: More than one database
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Sun, 14 Aug 2005 21:43:28 +0200

Klemen Dovrtel wrote:

> This is just one database, i don't see the second one. Is this code diferent than mine?
>

DB names must be unique.

Furthermore they must be globally unique, not just unique to your application. The common advice to achieve this is to add your creator ID to the start or end of the file name, with or without some form of punctuation.

For example:
   #define myFileName "Database"
        cannot be guaranteed to be globally unique

but assuming your creator ID is 'XXXX', these names are very likely to be
  #define myFileName "DatabaseXXXX"
  #define myFileName "Database-XXXX"
  #define myFileName "XXXXDatabase"
  #define myFileName "XXXX-Database"

Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)


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

Reply via email to