<[EMAIL PROTECTED]> wrote in message news:25523@palm-dev-forum...
> I would like my application to "divert" the vCard/vCalendar whenever it is
> found to the appropiate application on the PalmOS. In other words, my
> application just calls the necessary functions to put the vCard/vCalendar
> entry that it receives into the Addressbook or Calendar database
respectively.
It sounds like you want to send the vObject to yourself by "looping back".
Set the localMode flag in a zeroed ExgSocketType struct. Set the name field
to a string ending in .vcf (for vCard) or .vcs (for vCalendar). Call ExgPut
with the address of the ExgSocketType struct. Then call ExgSend repeatedly
to send the text of the vCard or vCalendar. Then call ExgDisconnect. You'll
probably see a progress dialog briefly on some version of Palm OS. You
should also get a "do you wanna accept" dialog. On Palm OS 3.5, this will
include a category picker.
--
Danny Epstein
OS Engineer, Palm Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/