Not logged in. · Lost password · Register
Forum: agsXMPP RSS
I am trying to create an XMPP GUI in Visual Studio.
Avatar
bk______ #1
Member since Feb 2016 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Problem using agsXMPP in a Windows GUI form
'Message' is an ambiguous reference between 'System.Windows.Forms.Message' and 'agsXMPP.protocol.client.Message'

From examples, I have tried to use:

xmpp.OnLogin += delegate (object o) { xmpp.Send(new Message("test@jabber.org", MessageType.chat, "Hello, how are you?")); };

to send a message. The Message is underlined in Visual Studio and the above error is there. Is there any way around this?

Thanks
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
as you error message sais the Message class exists in both namespaces:

  • System.Windows.Forms.Message
  • agsXMPP.protocol.client.Message

so add the full namespace to the agsXMPP message and you are fine.

Alex
Avatar
bk______ #3
Member since Feb 2016 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thanks. Slowly getting through this. Cheers
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