"Nicholas Geh" <[EMAIL PROTECTED]> wrote in message
news:19724@palm-dev-forum...
> I've written this program that sends out a vCard over the Exchange
> Manager's IRDA interface. I specified the socket as follows:
>
>     MemSet(&theSocket, sizeof(theSocket), 0);
>     theSocket.description = "john";
>     theSocket.name = "john.vcf";

I assume you called ExgPut here...

> and proceeded to call ExgSend, sending the contents of a string resource
>
> that contains the following vCard:
>
>     begin:vcard
>     n:John;Smith
>     fn: John Smith
>     end:vcard

... and called ExgDisconnect here...

> So when I beam the data, the AddressBook app picks it up and asks if I
> want to accept the data. (I set the IR for loopback) When I click "Yes",
it
> says "The data was not accepted".

This maps to the error code exgErrBadData which is thrown in AddrImportVCard
when it hits the end of data prematurely. I'm not sure why this is happening
though. Perhaps you need a line-end (carriage return or whatever) after the
end:vcard.
--
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/

Reply via email to