u can use the below api for creating a database:

Err DmCreateDatabase (UInt16 cardNo,const Char *nameP, UInt32 creator, UInt32 
type,Boolean resDB)

have a look at the code below

Err err = 0;
LocalID dbID = DmFindDatabase(0,"BugSquBugsDYTC");
gDB = NULL;

if (dbID > 0) gDB = DmOpenDatabase(0, dbID, dmModeReadWrite);
if (!gDB) 
{
err = DmCreateDatabase(0, "BugSquBugsDYTC", 'DYTC', 'DATA', false);

if (err == 0)
 {
 gDB = DmOpenDatabase(0, DmFindDatabase(0,"BugSquBugsDYTC"), dmModeReadWrite);

///

note i have not worked in PODS but i know this is the method to create it
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to