[JDEV] (no subject)

Dmitriy Kolegayev dmitriy at oven.com
Tue Jul 10 21:37:34 CDT 2001


http://sourceforge.net/projects/jabbin/ is a good introduction into what
needs to be done to make JabberCOM work with VC++.

You can see files at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jabbin/jabbin/

-----Original Message-----
From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of Yunli
Li
Sent: Tuesday, July 10, 2001 5:59 PM
To: jdev at jabber.org
Subject: [JDEV] (no subject)


Hello,everyfriend:
	I am a new member ob using the JabberCOM.
	I am failed on connecting with the Jabber server.

	Here is my code:

	IJabberSession m_jabSession1;//local

	CString m_UserName ;
	CString m_Password ;
	CString m_Resource ;
	CString m_Server ;

	m_UserName = _T("yunli");
	m_Password = _T("yunli");
	m_Resource.Empty() ;
	m_Server = _T("jabber.com");

	m_jabSession1.SetUsername( m_UserName );
	m_jabSession1.SetPassword( m_Password );
	m_jabSession1.SetResource( m_Resource );
	m_jabSession1.SetServer  ( m_Server   );

	m_jabSession1.SetAvailable(TRUE);
	m_jabSession1.SetStatus(_T("Testing!"));
	m_jabSession1.SetPort(5222);

	CString msg;
	msg = _T("Hi, how are you?");
	m_jabSession1.SendMessage((LPDISPATCH)(&msg));

#define New_User		TRUE
#define Registed_User	FALSE
	m_jabSession = m_jabSession1 ;
	m_jabSession.DoConnect( Registed_User , 1 );//jatDigest ) ;





	Could you tell me how I can telecommunicate with the jabber server with
JabberCOM
Or where can I get some samples of JabberCOM.

	Thank you.

yunli

_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list