From 29110c6b157b970a7b11ed1bdb5ba64d8b0b50c6 Mon Sep 17 00:00:00 2001 From: yellows111 Date: Mon, 27 May 2024 18:55:12 +0100 Subject: [PATCH] VS2008 support - it builds! also add a .def file, VS9 wants it BAD so whatever NOTE: compiling Detours with the VS9 toolchain requires warning C4127 to be ignored. You may have to edit uimports.cpp to include `#pragma warning(disable:4127)`. Detours will need to be added as such: * `VCCLCompilerTool.AdditionalIncludeDirectories`: detours/src renamed to detours/detours * `VCLinkerTool.AdditionalOptions`: path to compiled `detours.lib` for relevant arch --- MSNRedirector.v10.sln | 20 +++ MSNRedirector/MSNRedirector.def | 4 + MSNRedirector/MSNRedirector.vcxproj | 4 + MSNRedirector/MSNRedirector.vs9.vcproj | 211 +++++++++++++++++++++++++ 4 files changed, 239 insertions(+) create mode 100644 MSNRedirector.v10.sln create mode 100644 MSNRedirector/MSNRedirector.def create mode 100644 MSNRedirector/MSNRedirector.vs9.vcproj diff --git a/MSNRedirector.v10.sln b/MSNRedirector.v10.sln new file mode 100644 index 0000000..f0602b7 --- /dev/null +++ b/MSNRedirector.v10.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MSNRedirector", "MSNRedirector\MSNRedirector.vs9.vcproj", "{8C0E98F0-6138-4C11-A48F-79E42639392E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {15EB1C25-7CB3-43A0-9A6F-F2A0879A6BC2}.Debug|Win32.ActiveCfg = Debug|Win32 + {15EB1C25-7CB3-43A0-9A6F-F2A0879A6BC2}.Debug|Win32.Build.0 = Debug|Win32 + {15EB1C25-7CB3-43A0-9A6F-F2A0879A6BC2}.Release|Win32.ActiveCfg = Release|Win32 + {15EB1C25-7CB3-43A0-9A6F-F2A0879A6BC2}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/MSNRedirector/MSNRedirector.def b/MSNRedirector/MSNRedirector.def new file mode 100644 index 0000000..2eb451a --- /dev/null +++ b/MSNRedirector/MSNRedirector.def @@ -0,0 +1,4 @@ +LIBRARY MSNRedirector.dll + +EXPORTS + ImportThis @1 diff --git a/MSNRedirector/MSNRedirector.vcxproj b/MSNRedirector/MSNRedirector.vcxproj index feef433..1050c63 100644 --- a/MSNRedirector/MSNRedirector.vcxproj +++ b/MSNRedirector/MSNRedirector.vcxproj @@ -97,6 +97,7 @@ Windows + MSNRedirector.def true false @@ -113,6 +114,7 @@ Windows + MSNRedirector.def true false @@ -133,6 +135,7 @@ Windows true true + MSNRedirector.def true false @@ -153,6 +156,7 @@ Windows true true + MSNRedirector.def true false diff --git a/MSNRedirector/MSNRedirector.vs9.vcproj b/MSNRedirector/MSNRedirector.vs9.vcproj new file mode 100644 index 0000000..6be2426 --- /dev/null +++ b/MSNRedirector/MSNRedirector.vs9.vcproj @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +