diff --git a/DDrawCompat.sln b/DDrawCompat.sln index c6a755f..396cf5b 100644 --- a/DDrawCompat.sln +++ b/DDrawCompat.sln @@ -1,30 +1,21 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27130.2003 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29001.49 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DDrawCompat", "DDrawCompat\DDrawCompat.vcxproj", "{1146187A-17DE-4350-B9D1-9F9EAA934908}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 - Release|x64 = Release|x64 Release|x86 = Release|x86 - ReleaseWithDebugLogs|x64 = ReleaseWithDebugLogs|x64 ReleaseWithDebugLogs|x86 = ReleaseWithDebugLogs|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1146187A-17DE-4350-B9D1-9F9EAA934908}.Debug|x64.ActiveCfg = Debug|x64 - {1146187A-17DE-4350-B9D1-9F9EAA934908}.Debug|x64.Build.0 = Debug|x64 {1146187A-17DE-4350-B9D1-9F9EAA934908}.Debug|x86.ActiveCfg = Debug|Win32 {1146187A-17DE-4350-B9D1-9F9EAA934908}.Debug|x86.Build.0 = Debug|Win32 - {1146187A-17DE-4350-B9D1-9F9EAA934908}.Release|x64.ActiveCfg = Release|x64 - {1146187A-17DE-4350-B9D1-9F9EAA934908}.Release|x64.Build.0 = Release|x64 {1146187A-17DE-4350-B9D1-9F9EAA934908}.Release|x86.ActiveCfg = Release|Win32 {1146187A-17DE-4350-B9D1-9F9EAA934908}.Release|x86.Build.0 = Release|Win32 - {1146187A-17DE-4350-B9D1-9F9EAA934908}.ReleaseWithDebugLogs|x64.ActiveCfg = ReleaseWithDebugLogs|x64 - {1146187A-17DE-4350-B9D1-9F9EAA934908}.ReleaseWithDebugLogs|x64.Build.0 = ReleaseWithDebugLogs|x64 {1146187A-17DE-4350-B9D1-9F9EAA934908}.ReleaseWithDebugLogs|x86.ActiveCfg = ReleaseWithDebugLogs|Win32 {1146187A-17DE-4350-B9D1-9F9EAA934908}.ReleaseWithDebugLogs|x86.Build.0 = ReleaseWithDebugLogs|Win32 EndGlobalSection diff --git a/DDrawCompat/Common/Log.cpp b/DDrawCompat/Common/Log.cpp index 7436a6f..7ceb886 100644 --- a/DDrawCompat/Common/Log.cpp +++ b/DDrawCompat/Common/Log.cpp @@ -1,6 +1,8 @@ #define WIN32_LEAN_AND_MEAN +#include #include +#include #include #include @@ -56,7 +58,7 @@ std::ostream& operator<<(std::ostream& os, const WCHAR* wstr) return os << static_cast(wstr); } - return os << std::string(wstr, wstr + wcslen(wstr)).c_str(); + return os << std::wstring_convert, wchar_t>().to_bytes(wstr); } std::ostream& operator<<(std::ostream& os, const DEVMODEA& dm) diff --git a/DDrawCompat/DDrawCompat.vcxproj b/DDrawCompat/DDrawCompat.vcxproj index e5bc865..c596787 100644 --- a/DDrawCompat/DDrawCompat.vcxproj +++ b/DDrawCompat/DDrawCompat.vcxproj @@ -9,67 +9,38 @@ ReleaseWithDebugLogs Win32 - - ReleaseWithDebugLogs - x64 - Release Win32 - - Debug - x64 - - - Release - x64 - {1146187A-17DE-4350-B9D1-9F9EAA934908} Win32Proj DDrawCompat - 10.0.16299.0 + 10.0.17763.0 DynamicLibrary true - v141 + v142 NotSet + false DynamicLibrary false - v141 + v142 NotSet + false DynamicLibrary false - v141 + v142 NotSet - - - DynamicLibrary - true - v141 - Unicode - - - DynamicLibrary - false - v141 - true - Unicode - - - DynamicLibrary - false - v141 - true - Unicode + false @@ -85,15 +56,6 @@ - - - - - - - - - ddraw @@ -101,9 +63,6 @@ C:\Program Files %28x86%29\Microsoft Research\Detours Express 3.0\lib.X86;$(LibraryPath) false - - true - ddraw $(ProjectDir);C:\Program Files %28x86%29\Microsoft Research\Detours Express 3.0\include;$(IncludePath) @@ -114,12 +73,6 @@ $(ProjectDir);C:\Program Files %28x86%29\Microsoft Research\Detours Express 3.0\include;$(IncludePath) C:\Program Files %28x86%29\Microsoft Research\Detours Express 3.0\lib.X86;$(LibraryPath) - - false - - - false - @@ -140,20 +93,6 @@ $(IntDir)$(TargetName).lib - - - - - Level3 - Disabled - _DEBUG;_WINDOWS;_USRDLL;DDRAWCOMPAT_EXPORTS;%(PreprocessorDefinitions) - - - Windows - true - DDrawCompat.def - - @@ -190,42 +129,6 @@ $(IntDir)$(TargetName).lib - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_WINDOWS;_USRDLL;DDRAWCOMPAT_EXPORTS;%(PreprocessorDefinitions) - - - Windows - true - true - true - DDrawCompat.def - - - - - Level3 - - - MaxSpeed - true - true - NDEBUG;_WINDOWS;_USRDLL;DDRAWCOMPAT_EXPORTS;%(PreprocessorDefinitions) - - - Windows - true - true - true - DDrawCompat.def - -