Page 1 of 1

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

Posted: 07 Nov 2013, 11:33
by claudiu.m
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

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

Posted: 07 Nov 2013, 13:54
by Lapo
<< Moved in the proper forum section >>

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

Posted: 08 Nov 2013, 11:44
by MBagnati
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

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

Posted: 09 Nov 2013, 13:50
by claudiu.m
Thank you MBagnati I will try this.