Subject: Setting up XmppClientConnection
Hey guys,
So I have a new project, am I'm trying to integrate agsXMPP.
Here's the code I have:
I have included agsXMPP2008 and agsXMPP2008.ui.2008 as projects alongside my new project. I also added the references agsXMPP2008 and agsXMPP2008.ui.2008 for my new project.
Here's the problem, the libraries exist and everything works fine, except that xmpp.Server = "gmail.com"; wont compile. It acts as if the object xmpp doesn't exist, and does not appear in the tooltip suggestions. Heres the error:
Error 1 Invalid token '=' in class, struct, or interface member declaration C:\Documents and Settings\...\WindowsFormsApplication1\GTalkSender.cs
Any ideas?
So I have a new project, am I'm trying to integrate agsXMPP.
Here's the code I have:
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using agsXMPP;
- using agsXMPP.Xml;
- using agsXMPP.Xml.Dom;
- namespace WindowsFormsApplication1
- {
- public class GTalkSender
- {
- XmppClientConnection xmpp = new XmppClientConnection();
- xmpp.Server = "gmail.com";
- }
- }
I have included agsXMPP2008 and agsXMPP2008.ui.2008 as projects alongside my new project. I also added the references agsXMPP2008 and agsXMPP2008.ui.2008 for my new project.
Here's the problem, the libraries exist and everything works fine, except that xmpp.Server = "gmail.com"; wont compile. It acts as if the object xmpp doesn't exist, and does not appear in the tooltip suggestions. Heres the error:
Error 1 Invalid token '=' in class, struct, or interface member declaration C:\Documents and Settings\...\WindowsFormsApplication1\GTalkSender.cs
Any ideas?