Re: VCard (General questions)

by Jasmine, (5805 days ago) @ Varchas

Hi. I used our Samples\VC\Component\MFC and I used this code to obtain first contact's VCard:[code] IXMPPContacts cnts;
cnts.AttachDispatch(m_XMPP.GetContacts(), TRUE);
VARIANT var;
var.vt = VT_I2;
var.iVal = 0;

IXMPPContact cnt;
cnt.AttachDispatch(cnts.GetItem(var), TRUE);

IXMPPVCard vcard;
vcard.AttachDispatch(cnt.GetVCard(), TRUE);
vcard.Receive();[/code]
Hope this helps!
Kreso

locked

Complete thread: