> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Windows용 C++ 빠른 시작

> Windows의 Visual Studio에서 네이티브 C++ 프로젝트를 설정하고 PlayFab XPlatCppSdk 클라이언트 라이브러리를 사용해 첫 번째 PlayFab API 호출을 수행합니다.

# 빠른 시작: Windows용 C++

<Note>
  이 SDK는 새로운 [PlayFab C SDK](/services/playfab/sdks/c)로 교체되고 있습니다. 새 SDK는 Windows (Win32)를 지원합니다. 새 SDK에서 지원되는 플랫폼 세트는 시간이 지남에 따라 확장하고 있습니다.
</Note>

C++용 PlayFab Client 라이브러리로 시작하세요. 패키지를 설치하는 단계를 따르고 기본 작업에 대한 예제 코드를 시도해 보세요.

이 빠른 시작은 C++용 Client 라이브러리를 사용해 첫 번째 PlayFab API 호출을 수행하는 데 도움이 됩니다.

[API 참조 문서](/services/playfab/api-references) | [라이브러리 소스 코드](https://github.com/PlayFab/XPlatCppSdk)

## 요구 사항

* [PlayFab 개발자 계정](https://developer.playfab.com).
* [Visual Studio](https://visualstudio.microsoft.com/) 설치.

## Windows C++ 프로젝트 설정

설치:

1. [PlayFab 크로스 플랫폼 (CPP) SDK](https://github.com/PlayFab/XPlatCppSdk)를 다운로드하고 설치합니다.
2. 새 C++ 콘솔 프로젝트를 만듭니다.
3. **솔루션 탐색기**에서 프로젝트를 마우스 오른쪽 단추로 클릭하고 **NuGet 패키지 관리**를 선택한 다음 "playfab"으로 검색합니다. 몇 가지 일치 항목이 있습니다. **com.playfab.xplatcppsdk.vXXX**를 선택합니다.
4. 프로젝트가 x64 Release로 컴파일되는지 확인합니다.

## 첫 번째 API 호출 설정

이 가이드는 GUI나 화면 피드백 없이 첫 번째 PlayFab API 호출을 수행하는 데 필요한 최소한의 단계를 제공합니다. 확인은 콘솔 print 문을 사용하여 수행됩니다.

1. Visual Studio에서 C++ 콘솔 애플리케이션을 엽니다.
2. 프로젝트의 main cpp 문서를 엽니다. 프로젝트 이름을 바꾸지 않은 경우 파일 이름은 ConsoleApplication1.cpp와 유사합니다.
3. 파일 내용을 아래에 표시된 코드로 바꿉니다.

```cpp theme={null}
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//

#include "playfab/PlayFabError.h"
#include "playfab/PlayFabClientDataModels.h"
#include "playfab/PlayFabClientApi.h"
#include "playfab/PlayFabSettings.h"
#include "playfab/PlayFabApiSettings.h"
#include <windows.h>

using namespace PlayFab;
using namespace ClientModels;

bool finished = false;

void OnLoginSuccess(const LoginResult& result, void* customData)
{
    printf("Congratulations, you made your first successful API call!\n");
    finished = true;
}

void OnLoginFail(const PlayFabError& error, void* customData)
{
    printf("Something went wrong with your first API call.\n");
    printf("Here's some debug information:\n");
    printf(error.GenerateErrorReport().c_str());
    printf("\n");
    finished = true;
}

int main()
{
    PlayFabSettings::staticSettings->titleId = ("144");

    LoginWithCustomIDRequest request;
    request.CreateAccount = true;
    request.CustomId = "GettingStartedGuide";

    PlayFabClientAPI::LoginWithCustomID(request, OnLoginSuccess, OnLoginFail);

    while (PlayFabClientAPI::Update() != 0)
        Sleep(1);

    printf("Press enter to exit\n");
    getchar();
    return 0;
}
```

## 완료 및 실행

1. 프로젝트를 실행하려면 **디버그** > **디버깅 시작**을 선택합니다.
2. 로드되면 다음 텍스트가 표시됩니다:

   "Congratulations, you made your first successful API call!"
3. 다른 API 호출을 시작하고 타이틀을 빌드합니다.


## Related topics

- [GDK용 C/C++ 빠른 시작](/ko/services/playfab/sdks/playfab-cpp/quickstart-gdk.md)
- [Corona용 Lua 빠른 시작](/ko/services/playfab/sdks/lua/quickstart-corona.md)
- [Linux용 C++ 빠른 시작](/ko/services/playfab/sdks/playfab-cpp/quickstart-linux.md)
- [Defold용 Lua 빠른 시작](/ko/services/playfab/sdks/lua/quickstart-defold.md)
- [Unity 빠른 시작](/ko/services/playfab/sdks/unity3d/quickstart.md)
