From 0d6c64f87b8ae50d1ccf6776ad4e533c64635c0c Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Fri, 6 Sep 2024 15:59:24 +0800 Subject: [PATCH] =?UTF-8?q?IDE:=20=E5=8D=87=E7=BA=A7=E4=B8=BA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8Visual=20Studio=202019=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReadMe.txt | 6 ++++++ client/ClientDll_vs2015.vcxproj | 14 +++++++------- client/TestRun_vs2015.vcxproj | 14 +++++++------- client/ghost_vs2015.vcxproj | 14 +++++++------- server/2015Remote/2015Remote_vs2015.vcxproj | 14 +++++++------- server/2015Remote/stdafx.h | 5 +++++ 6 files changed, 39 insertions(+), 28 deletions(-) diff --git a/ReadMe.txt b/ReadMe.txt index fb759bc..5d4bf1c 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -219,3 +219,9 @@ TestRun在写入开机自启动项时先提升权限,以防止因权限不足 2021.3.14 修复了若干个问题。 + +2024.9.6 +1.新增"2019Remote.sln"支持使用Visual Studio 2019编译项目。 +2.增加了使用VLD的操作方法,详见"server\2015Remote\stdafx.h"。 +注意:自VS2019开始,不支持XP系统了(微软已经声明这个变更)。如果有需要在XP系统进行监控的需求,推荐使用"2015Remote.sln"。 +如果使用VS2015编译,需将WindowsTargetPlatformVersion修改为8.1,将PlatformToolset修改为v140_xp。 diff --git a/client/ClientDll_vs2015.vcxproj b/client/ClientDll_vs2015.vcxproj index 846f066..0e9fcce 100644 --- a/client/ClientDll_vs2015.vcxproj +++ b/client/ClientDll_vs2015.vcxproj @@ -14,20 +14,20 @@ {BEBAF888-532D-40D3-A8DD-DDAAF69F49AA} ClientDll ServerDll - 8.1 + 10.0 DynamicLibrary true - v140_xp + v142 MultiByte false DynamicLibrary false - v140_xp + v142 true MultiByte @@ -42,13 +42,13 @@ - $(WindowsSDK_IncludePath);$(IncludePath) - $(WindowsSDK_LibraryPath_x86);$(LibraryPath) + $(WindowsSDK_IncludePath);$(VLDPATH)\include\;$(IncludePath) + $(WindowsSDK_LibraryPath_x86);$(VLDPATH)\lib\Win32\;$(LibraryPath) $(Configuration)\dll - $(WindowsSDK_LibraryPath_x86);$(LibraryPath) - $(WindowsSDK_IncludePath);$(IncludePath) + $(WindowsSDK_LibraryPath_x86);$(VLDPATH)\lib\Win32\;$(LibraryPath) + $(WindowsSDK_IncludePath);$(VLDPATH)\include\;$(IncludePath) $(Configuration)\dll diff --git a/client/TestRun_vs2015.vcxproj b/client/TestRun_vs2015.vcxproj index 23388d3..739e00c 100644 --- a/client/TestRun_vs2015.vcxproj +++ b/client/TestRun_vs2015.vcxproj @@ -13,20 +13,20 @@ {B5D7F0E5-E735-4B17-91AE-866CE7E6ABD3} TestRun - 8.1 + 10.0 TestRun Application true - v140_xp + v142 MultiByte Application false - v140_xp + v142 true MultiByte @@ -41,13 +41,13 @@ - $(WindowsSDK_IncludePath);$(IncludePath) - $(WindowsSDK_LibraryPath_x86);$(LibraryPath) + $(WindowsSDK_IncludePath);$(VLDPATH)\include\;$(IncludePath) + $(WindowsSDK_LibraryPath_x86);$(VLDPATH)\lib\Win32\;$(LibraryPath) $(Configuration)\test - $(WindowsSDK_IncludePath);$(IncludePath) - $(WindowsSDK_LibraryPath_x86);$(LibraryPath) + $(WindowsSDK_IncludePath);$(VLDPATH)\include\;$(IncludePath) + $(WindowsSDK_LibraryPath_x86);$(VLDPATH)\lib\Win32\;$(LibraryPath) $(Configuration)\test diff --git a/client/ghost_vs2015.vcxproj b/client/ghost_vs2015.vcxproj index cb64cdd..e45fc23 100644 --- a/client/ghost_vs2015.vcxproj +++ b/client/ghost_vs2015.vcxproj @@ -14,20 +14,20 @@ {3F756E52-23C2-4EE4-A184-37CF788D50A7} ClientDll ghost - 8.1 + 10.0 Application true - v140_xp + v142 MultiByte false Application false - v140_xp + v142 true MultiByte @@ -43,13 +43,13 @@ $(Configuration)\ghost - $(WindowsSDK_IncludePath);$(IncludePath) - $(WindowsSDK_LibraryPath_x86);$(LibraryPath) + $(WindowsSDK_IncludePath);$(VLDPATH)\include\;$(IncludePath) + $(WindowsSDK_LibraryPath_x86);$(VLDPATH)\lib\Win32\;$(LibraryPath) $(Configuration)\ghost - $(WindowsSDK_IncludePath);$(IncludePath) - $(WindowsSDK_LibraryPath_x86);$(LibraryPath) + $(WindowsSDK_IncludePath);$(VLDPATH)\include\;$(IncludePath) + $(WindowsSDK_LibraryPath_x86);$(VLDPATH)\lib\Win32\;$(LibraryPath) diff --git a/server/2015Remote/2015Remote_vs2015.vcxproj b/server/2015Remote/2015Remote_vs2015.vcxproj index 0506f61..f1704b0 100644 --- a/server/2015Remote/2015Remote_vs2015.vcxproj +++ b/server/2015Remote/2015Remote_vs2015.vcxproj @@ -15,7 +15,7 @@ My2015Remote MFCProj Yama - 8.1 + 10.0 @@ -23,7 +23,7 @@ true MultiByte Static - v140_xp + v142 Application @@ -31,7 +31,7 @@ true MultiByte Static - v140_xp + v142 @@ -45,13 +45,13 @@ true - $(WindowsSDK_IncludePath);$(IncludePath) - $(WindowsSDK_LibraryPath_x86);$(LibraryPath) + $(WindowsSDK_IncludePath);$(VLDPATH)\include\;$(IncludePath) + $(WindowsSDK_LibraryPath_x86);$(VLDPATH)\lib\Win32\;$(LibraryPath) false - $(WindowsSDK_LibraryPath_x86);$(LibraryPath) - $(WindowsSDK_IncludePath);$(IncludePath) + $(WindowsSDK_LibraryPath_x86);$(VLDPATH)\lib\Win32\;$(LibraryPath) + $(WindowsSDK_IncludePath);$(VLDPATH)\include\;$(IncludePath) diff --git a/server/2015Remote/stdafx.h b/server/2015Remote/stdafx.h index 86b7c81..61cbfbd 100644 --- a/server/2015Remote/stdafx.h +++ b/server/2015Remote/stdafx.h @@ -31,6 +31,11 @@ #define CLOSE_DELETE_DLG 0 // ڴй©谲װVLDעʹ +// װVLD, 뽫װ·ӵ: Ϊ"VLDPATH", ·Ϊ"D:\Program Files (x86)\Visual Leak Detector" +// ʵʰװĿ¼дVLDPATH. ֶ༭ÿĿļͷļĿ¼ͿĿ¼. йVLDϢο. +// VS2017ǰ汾VLD: https://kinddragon.github.io/vld +// VS2019ʹõVLD֧VS汾, Ƽ: https://github.com/oneiric/vld/releases/tag/v2.7.0 +// Ҫܿض˳ŵ, ʹReleaseģʽɵij, ԽVLD; ҪVLDļһͬ. #include "vld.h" #include "targetver.h"