Re: VCard - WeOnlyDo Discussion board

Re: VCard (General questions)

by sapna, Tuesday, July 07, 2009, 09:34 (5617 days ago) @ wodDamir

Sapna,

Can you please try this:

[code]IXMPPVCard mycard;
mycard.AttachDispatch(m_XMPP.GetVCard());
mycard.Receive();[/code]

Use the above code to retrieve VCard, and use this in VCardDetails Event:

[code]IXMPPContact cnt;
cnt.AttachDispatch(Contact) ;
//contact returns null if the picture is not present in the vcard
IXMPPVCard myvcard ;
myvcard.AttachDispatch(cnt.GetVCard()) ;

AfxMessageBox(myvcard.GetJid());
//this code does not return anything because the myvcard does not have anything other than the picture. myvcard.GetJid() returns null
[/code]

Regards,
Damba


Complete thread: