Re: VCard - WeOnlyDo Discussion board

Re: VCard (General questions)

by wodSupport, Thursday, June 11, 2009, 21:52 (5643 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


Complete thread: