Hi all,
I'm hitting a frustrating problem with trying to add Xbox Live support to my UWP application under the creators collection. I've followed the instructions in this MSDN post (I'm using the templates for C++/WinRT, hence not using the WinRT.UWP variants as used in the article). I've added the suggested lines in my code of:
#define XBOX_LIVE_CREATORS_SDK
#include "xsapi\services.h"
And when I go to compile the code, I get the following compilation issue:
spacegirl\packages\microsoft.xbox.live.sdk.cpp.uwp.2018.6.20180914.1\build\native\include\cpprest\asyncrt_utils.h(503): error C4596: 'system_type_to_datetime': illegal qualified name in member declaration
spacegirl\packages\microsoft.xbox.live.sdk.cpp.uwp.2018.6.20180914.1\build\native\include\cpprest\streams.h(900): error C7510: 'int_type': use of dependent type name must be prefixed with 'typename'
spacegirl\packages\microsoft.xbox.live.sdk.cpp.uwp.2018.6.20180914.1\build\native\include\cpprest\streams.h(1133): note: see reference to class template instantiation 'Concurrency::streams::basic_istream<_CharType>' being compiled
spacegirl\packages\microsoft.xbox.live.sdk.cpp.uwp.2018.6.20180914.1\build\native\include\xsapi\types.h(156): error C3083: 'System': the symbol to the left of a '::' must be a type
spacegirl\packages\microsoft.xbox.live.sdk.cpp.uwp.2018.6.20180914.1\build\native\include\xsapi\types.h(156): error C2039: 'User': is not a member of 'Windows'
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\winrt\roerrorapi.h(170): note: see declaration of 'Windows'
I've checked on my build tools and they're set to 'Visual Studio 2017 (v141)' and I have version 15.7.5 installed of VS Community 2017. I'm going to update to 15.8.5 to see if that solves it, but who knows.
Any suggestions?
Thanks
Steve