Re: VCard - WeOnlyDo Discussion board

Re: VCard (General questions)

by Varchas, Thursday, June 11, 2009, 18:04 (5646 days ago) @ woddrazen

Hello Drazen,
All those references are either in C# or in VB. I do not know the corresponding code or it doesnt seem to work.
This is what I tried

IXMPPVCard mycard ;
mycard.AttachDispatch(m_XMPP.GetVCard()) ;
mycard.Receive() ;

I am using gmail to test the application.
After calling Receive(), I do not get any VCardDetails event fired. Kindly let me know if the C++ code what I am trying is correct.
Thanks a ton for your help.
Do let me know.
Regards
Varchas R S

Hi Varchas,


First you should receive VCard from the server using XMPPVCard object Receive Method.

More help for Receive Method you can find here:
http://www.weonlydo.com/XMPP/Help/WODXMPPLib~XMPPVCard~Receive.html

Then in VCardDetails Event you can receive VCard details.
[code]debug.print Contact.VCard.NickName[/code]
You can find here list of VCard details you can receive:
http://www.weonlydo.com/XMPP/Help/WODXMPPLib~XMPPVCard.html

Let us know how it goes.


Regards,
Drazen


Complete thread: