On Thursday, March 28, 2002, at 06:40 PM, Rayesh wrote:
> Hi Joe > > I want to get all entries of address book to a file. So that my > application > can read that file. I don't want to read the data directly from > AddressDb. > My aim is to get all address book entries and mail it. I want put this > entries(all) in a mail body and send. > > How can proceed for this. > You'll want to take a look at the file 'AddessDB.h' that come with the Palm SDK so you can familiarize yourself with the format of Address records. Assuming you want the Address file on your desktop, you'll need to read the record on the Palm using SyncReadRecordByIndex which is part of Palm's CDK (i.e., conduit). You'll need to read the returned raw record value and figure out the flag settings to determine which field values are available since the data is 'packed'. If you are trying to do this on the Palm, you can either access the the AddressDB directly (which you don't want to) or take a look at the function TransferExportVCard() in the 'AddressTransfer.c' file that comes with Palm's SDK examples. I'm not sure which Mail client you would be trying to get the data into but it'll either need some kind of API or you'll need to know it's database format so you can write the Address data into it's mail body. Hope this helps, Mark F Rodriguez ---------------------------------------- xAplos, Inc. [EMAIL PROTECTED] http://www.xaplos.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
