diff --git a/api/OSUtils.cpp b/api/OSUtils.cpp index c7b0d5b..683f551 100644 --- a/api/OSUtils.cpp +++ b/api/OSUtils.cpp @@ -1,5 +1,6 @@ #include "OSUtils.h" +struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive- #include #include diff --git a/libLicenseClient.vcxproj b/libLicenseClient.vcxproj index 87d26e1..7842e96 100644 --- a/libLicenseClient.vcxproj +++ b/libLicenseClient.vcxproj @@ -15,7 +15,7 @@ {51345E59-83E5-4389-93A9-0131B40522B7} Win32Proj libLicenseClient - 10.0.16299.0 + 8.1 @@ -60,6 +60,7 @@ WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) true stdcpplatest + /Zc:strictStrings- %(AdditionalOptions) Windows @@ -79,6 +80,7 @@ stdcpplatest false None + /Zc:strictStrings- %(AdditionalOptions) Windows diff --git a/project-common.props b/project-common.props index d764253..7b012c7 100644 --- a/project-common.props +++ b/project-common.props @@ -1,7 +1,7 @@ - + diff --git a/src/HTTPClient.cpp b/src/HTTPClient.cpp index f723318..0d5f131 100644 --- a/src/HTTPClient.cpp +++ b/src/HTTPClient.cpp @@ -1,5 +1,6 @@ #include "HTTPClient.h" +struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive- #include #include diff --git a/src/LicenseClient.cpp b/src/LicenseClient.cpp index e3a4ad6..8e21020 100644 --- a/src/LicenseClient.cpp +++ b/src/LicenseClient.cpp @@ -52,7 +52,7 @@ namespace { static const std::string productId = "coc"; -static const std::string serverPath = "http://localhost:3000/api/v1"; +static const std::string serverPath = "https://license.apis.sk/api/v1"; static const uint32_t initializationVectorSize = AES::BLOCKSIZE; static const uint32_t macTagSize = 16; @@ -386,7 +386,7 @@ std::vector LicenseClient::checkForUpdates(HTTPClient & httpClient // Something changes - Server sent us updated licenseFile { const auto& licenseData = checkUpdatesResponse.licenseFile.value(); - std::ofstream os(m_licenseFile); + std::ofstream os(m_licenseFile, std::ofstream::binary); os.write(licenseData.data(), licenseData.size()); } loadActivationData(); diff --git a/src/SystemParamsProvider_win.cpp b/src/SystemParamsProvider_win.cpp index 356e796..39c6ac6 100644 --- a/src/SystemParamsProvider_win.cpp +++ b/src/SystemParamsProvider_win.cpp @@ -1,5 +1,6 @@ #include "SystemParamsProvider_win.h" +struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive- #define _WIN32_DCOM #include #include diff --git a/test/libLicenseClientTest.vcxproj b/test/libLicenseClientTest.vcxproj index f09632d..3b5e91a 100644 --- a/test/libLicenseClientTest.vcxproj +++ b/test/libLicenseClientTest.vcxproj @@ -23,7 +23,7 @@ {E781AE2E-4A02-4D63-9CAC-1AEBACD9CD73} Win32Proj libLicenseClientTest - 10.0.16299.0 + 8.1 @@ -61,13 +61,13 @@ - + - +