Hi,

First of all palm database is not exactly a database. Writing to palm
database is like writing a structure to a file using fwrite() function
in c.

Going by this logic, U will be having a structure for which u will
create a instance and fill the data members. Using DmNewRecord() u will
get a memory handle to the new record. U will lock the memory handle and
using Dmwrite() u will assign the instance of structure to the memory
handle and unlock the memory handle. After that u will use
DmReleaseRecord() to release the record u have newly created.

Hope this helps...

Girish.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of druid
Sent: Tuesday, February 17, 2004 6:57 PM
To: Palm Developer Forum
Subject: Database creation

Im confused about creating a database
When you use
Err err = DmCreateDatabase(DB_CARDNO, DB_NAME, DB_CREATOR, DB_TYPE,
false);
this creates a database but no fields are defined
How do you actualy define the fields in the database
thanks

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


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

Reply via email to