Shoutbox

IMessenger3->InstantMessage() - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Skype & Live Messenger (/forumdisplay.php?fid=10)
+----- Thread: IMessenger3->InstantMessage() (/showthread.php?tid=46844)

IMessenger3->InstantMessage() by RaceProUK on 06-25-2005 at 07:11 PM

I call this method witha correctly set-up 'contact' argument, and a valid pointer to receive the IMessengerConversationWnd* (as IDispatch*, so no typecasting). So why do I always get 'We are unable to start a conversation.'?

Update: A bit of testing shows that, despite using an e-mail address that differs from mine, I get 'E_FAIL', meaning I called it against myself?


RE: IMessenger3->InstantMessage() by Mnjul on 06-26-2005 at 05:48 AM

To make things certain: How do you set-up the vContact argument? :)


RE: IMessenger3->InstantMessage() by RaceProUK on 06-26-2005 at 01:07 PM

code:
VariantInit(&contact);
contact.vt = VT_BSTR;
contact.bstrVal = (BSTR)param;
where 'param' is a WCHAR*.

Edit: Never mind - it was a threading issue.