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;

}

Reply via email to