Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
alinux #1
Member since Feb 2008 · 20 posts
Group memberships: Members
Show profile · Link to this post
Subject: Using SDK with VC++ on VC2005
Hi All

I would like to use the SDK and test it using Visual C++, I want to excecute the example in the site

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


using C++, I can edit the source code myself, however I need to now what include statements I must add before the code and what changes I must do do the project properties, I cant find any lib or include dirs to use.

Thank you.
This post was edited on 2008-02-26, 16:06 by alinux.
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

our SDK is for .NET/Mono development. If you use VC++.NET then you should start with the examples that ship with the SDK.
If you don't work with .NET technologies and want to create native c++ application you should take a look at gloox

Alex
Alexander Gnauck
AG-Software
Avatar
alinux #3
Member since Feb 2008 · 20 posts
Group memberships: Members
Show profile · Link to this post
Well I did create a sample project and the following is the code I used in VC++

// asdf.cpp : main project file.

#include "stdafx.h"


using namespace agsXMPP::Xml;
using namespace agsXMPP::Xml::Dom;
 
using namespace agsXMPP::protocol;
using namespace agsXMPP::protocol::iq;
using namespace agsXMPP::protocol::iq::auth;
using namespace agsXMPP::protocol::iq::agent;


int main(array<System::String ^> ^args)
{
 XmppClientConnection xmpp = XmppClientConnection("jabber.org");
}


But that did not work

1>.\asdf.cpp(6) : error C2653: 'agsXMPP' : is not a class or namespace name


Anything  I missed here ?

Note: The sample projects compile successfully
Avatar
Alex #4
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
did you add a reference to the agsXMPP.dll?

Alex
Alexander Gnauck
AG-Software
Avatar
alinux #5
Member since Feb 2008 · 20 posts
Group memberships: Members
Show profile · Link to this post
Actually that did work..however i am trying to run this in a QT project and QT is native C++ and it seems it wont work with agsXMPP am I right ?
Avatar
Alex #6
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
As I said before this is a .NET component.
If you work with QT .NET is probably not what you want???. There are other libraries for Qt like Iris.

Alex
Alexander Gnauck
AG-Software
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 SDK Support RSS