

Go to Configuration Properties / C/C++ / Command Line and add -Zm200 in Additional Options field this is necessary to avoid C3859 compiler error when include Casablanca headers in stdafx.h.Go to Configuration Properties / C/C++ / General and add $(ExtensionSDKDirectoryRoot)\Cpp REST SDK for Visual Studio 2013\SDK\include to Additional Include Directories list.Choose All configurations in the Configuration combo box.Next, create a new MFC project or open an existing one, right click on it’s name, choose “Properties” from the context menu, then do the following: Set up the project for using C++ REST SDKįirst, must find the location where C++ REST SDK is installed. With Visual Studio 2013 installed, I found it in the following path:Ĭ:\Program Files (x86)\Microsoft SDKs\Cpp REST SDK for Visual Studio 2013\SDK\ which is similar to $(ExtensionSDKDirectoryRoot)\Cpp REST SDK for Visual Studio 2013\SDK. It also shows some simple sample code and a demo MFC project. This article gives suggestions of how to set up a Visual C++ project (particularly one that uses MFC) in order to be able to deal with Casablanca library.


We can get C++ REST SDK from CodePlex or use the one shipped with Visual Studio 2013. C++ REST SDK (also known as Casablanca) offers support for HTTP client/server, JSON, URI, asynchronous streams, WebSockets client, oAuth and PPL Tasks.
