Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
KEN_OH #1
Member since Feb 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: MessageHandler agsXMPP 1.10
hi,
I'm a starter using asp.net and Jabber, when I'm tring to create a simple web chat I faced this problem :

the type name 'MessageHandler' do not exist in the type 'agsXMPP.XmppClientConnection'
xmpp.OnMessage += new XmppClientConnection.MessageHandler(OnMessage);

those are my import :

using agsXMPP;
using agsXMPP.Collections;
using agsXMPP.protocol;
using agsXMPP.protocol.client;

I think this will work fine on agsXMPP 1.00
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by KEN_OH:
the type name 'MessageHandler' do not exist in the type 'agsXMPP.XmppClientConnection'
xmpp.OnMessage += new XmppClientConnection.MessageHandler(OnMessage);

it's now:
  1. using System.IO;
  2. using System.Text;
  3. XmmClient xmpp = new XmmClient();
  4. xmpp.OnMessage +=  new MessageHandler(OnMessage);

After you type OnMessage in Visual Studio the intelli sense should also complete the handler for you correctly.

Alex
This post was edited on 2010-03-03, 12:20 by Alex.
Avatar
KEN_OH #3
Member since Feb 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
thank you.
I hope that my application will work ^^
This post was edited on 2010-02-19, 12:04 by KEN_OH.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS