[JDEV] JabberCOM and vc++

Michael Kim mike at uitlive.com
Mon Jun 16 16:46:04 CDT 2003


I'm having a hell of a time getting the JabberCOM dll to work under VC++. Here's my code to load and init the COM.   Any help is greatly appreciated.

Thanks 

OleInitialize(NULL);



HRESULT hr;

hr = CoCreateInstance(CLSID_JabberSession, 

NULL, 

CLSCTX_INPROC_SERVER, 

IID_IJabberSession,

(void**)&iJabber);


iJabber->put_Username(L"clientname");

iJabber->put_Password(L"password");

iJabber->put_Server(L"jabber.org");

iJabber->put_Resource(L"test");

iJabber->put_Available(true);

if (FAILED(iJabber->DoConnect(TRUE, jatAuto)))

{

AfxMessageBox(L"Failed to login to account", MB_ICONSTOP);

return FALSE;

}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20030616/db62eb7c/attachment-0002.htm>


More information about the JDev mailing list