>the point is that I don't know how to create my own pdb file, if I
>have to, in order to store application's data, until hotsync is done.
Could
>you send me some reference about?
you need to set on the backup bit of the database info structure: here's an
example taken from the sdk-40 examples:
LocalID dbID;
UInt16 attributes;
const UInt32 kType = 'DATA';
const UInt32 kCreator = 'xxxxxx';
const char *kName = "yyyyyyyyyyyy";
UInt16 kCardNumber = 0;
DmOpenDatabaseInfo(gDatabase, &dbID, NULL, NULL, &kCardNumber, NULL);
DmDatabaseInfo(kCardNumber, dbID, NULL, &attributes, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
attributes |= dmHdrAttrBackup;
DmSetDatabaseInfo(kCardNumber, dbID, NULL, &attributes, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL);
ciao, Paolo
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/