Quickstart: C++ for Windows
This SDK is being replaced by the new PlayFab C SDK. The new SDK supports Windows (Win32). We are expanding the set of supported platforms for the new SDK over time.
Requirements
- A PlayFab developer account.
- An installation of Visual Studio.
Windows C++ project setup
Installation:- Download and install the PlayFab Cross-Platform (CPP) SDK.
- Create a new C++ Console project.
- Right-click on the project in Solution Explorer, select Manage NuGet packages, and search using “playfab”. There will be a few matches. Select com.playfab.xplatcppsdk.vXXX
- Verify that your project compiles in x64 Release
Set up your first API call
This guide provides the minimum steps to make your first PlayFab API call, without any GUI or on-screen feedback. Confirmation is performed using a console print statement.- In Visual Studio, open your C++ Console Application.
- Open the main cpp document for the project. If you didn’t rename the project, the file name will be similar to ConsoleApplication1.cpp`.
- Replace the contents of the file with the code shown below.
Finish and execute
- To run the project, select Debug > Start Debugging.
- When it loads, the following text is displayed: “Congratulations, you made your first successful API call!”
- Start making other API calls, and build your title.
