How to implement the C++ API into Visual Studio 2013

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

claudiu.m
Posts: 23
Joined: 10 Sep 2013, 08:51
Location: Germany

How to implement the C++ API into Visual Studio 2013

Postby claudiu.m » 07 Nov 2013, 11:33

Hello,
I want to use SmartFoxServer 2X with C++ on the client side so I downloaded the C++ API from here: http://www.smartfoxserver.com/download/sfs2x#p=client .
It would be very nice if anyone can tell me how to use the API with Visual Studio 2013.
I created a new project but how to use the API?
Do I have to add all the files into my project like this:

Code: Select all

#include "SFS2X_API_CPP\Requests\LoginRequest.h"



Thank you in advance for your help
User avatar
Lapo
Site Admin
Posts: 20146
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to implement the C++ API into Visual Studio 2013

Postby Lapo » 07 Nov 2013, 13:54

<< Moved in the proper forum section >>
Lapo
--
gotoAndPlay()
...addicted to flash games
MBagnati
Posts: 125
Joined: 12 Feb 2013, 10:57

Re: How to implement the C++ API into Visual Studio 2013

Postby MBagnati » 08 Nov 2013, 11:44

Hi,
I suggest you to take a look at http://www.smartfoxserver.com/download/sfs2x#p=examples
Here you can find samples of client applications.
In detail, you can find:
  • the SimpleChat sample for Visual Studio 2010 and Visual Studio 2012
  • the FullHouse sample for Visual Studio 2010
I think that you can move these samples in Visual Studio 2013 without problems and you can use them as guideline to write your application
claudiu.m
Posts: 23
Joined: 10 Sep 2013, 08:51
Location: Germany

Re: How to implement the C++ API into Visual Studio 2013

Postby claudiu.m » 09 Nov 2013, 13:50

Thank you MBagnati I will try this.

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 1 guest