From 4f29082f1678add632b8cfda11bdf703d93c24ea Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sat, 31 Dec 2022 14:00:15 +0100 Subject: [PATCH] Added example application. --- CompatLib.sln | 9 +++ CompatLib/CompatLib.vcxproj | 6 +- Example/Example.vcxproj | 114 ++++++++++++++++++++++++++++++++ Example/Example.vcxproj.filters | 22 ++++++ Example/src/main.cpp | 17 +++++ 5 files changed, 164 insertions(+), 4 deletions(-) create mode 100644 Example/Example.vcxproj create mode 100644 Example/Example.vcxproj.filters create mode 100644 Example/src/main.cpp diff --git a/CompatLib.sln b/CompatLib.sln index 6d20165..afcad7a 100644 --- a/CompatLib.sln +++ b/CompatLib.sln @@ -5,6 +5,11 @@ VisualStudioVersion = 16.0.33130.400 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CompatLib", "CompatLib\CompatLib.vcxproj", "{42C9DDA4-0375-45AF-952D-825EA83EAE4C}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Example", "Example\Example.vcxproj", "{B0C81A18-6AC1-4DBC-9CCB-B45E8023145D}" + ProjectSection(ProjectDependencies) = postProject + {42C9DDA4-0375-45AF-952D-825EA83EAE4C} = {42C9DDA4-0375-45AF-952D-825EA83EAE4C} + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Release|x64 = Release|x64 @@ -15,6 +20,10 @@ Global {42C9DDA4-0375-45AF-952D-825EA83EAE4C}.Release|x64.Build.0 = Release|x64 {42C9DDA4-0375-45AF-952D-825EA83EAE4C}.Release|x86.ActiveCfg = Release|Win32 {42C9DDA4-0375-45AF-952D-825EA83EAE4C}.Release|x86.Build.0 = Release|Win32 + {B0C81A18-6AC1-4DBC-9CCB-B45E8023145D}.Release|x64.ActiveCfg = Release|x64 + {B0C81A18-6AC1-4DBC-9CCB-B45E8023145D}.Release|x64.Build.0 = Release|x64 + {B0C81A18-6AC1-4DBC-9CCB-B45E8023145D}.Release|x86.ActiveCfg = Release|Win32 + {B0C81A18-6AC1-4DBC-9CCB-B45E8023145D}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/CompatLib/CompatLib.vcxproj b/CompatLib/CompatLib.vcxproj index 44458de..fd0f557 100644 --- a/CompatLib/CompatLib.vcxproj +++ b/CompatLib/CompatLib.vcxproj @@ -28,7 +28,7 @@ Win32Proj {42c9dda4-0375-45af-952d-825ea83eae4c} CompatLib - 10.0.17763.0 + 10.0.19041.0 @@ -78,7 +78,6 @@ WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) true NotUsing - pch.h MultiThreaded Size true @@ -105,14 +104,13 @@ true NDEBUG;_LIB;%(PreprocessorDefinitions) true - NotUsing - pch.h MultiThreaded Size true MaxSpeed false Fast + NotUsing diff --git a/Example/Example.vcxproj b/Example/Example.vcxproj new file mode 100644 index 0000000..42b053c --- /dev/null +++ b/Example/Example.vcxproj @@ -0,0 +1,114 @@ + + + + + Release + Win32 + + + Release + x64 + + + + + + + 16.0 + Win32Proj + {b0c81a18-6ac1-4dbc-9ccb-b45e8023145d} + Example + 10.0.19041.0 + + + + Application + false + v142 + true + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + false + $(ProjectDir)\bin\ + $(ProjectDir)\obj\$(Configuration)\$(Platform)\ + example-x86 + + + false + $(ProjectDir)\bin\ + $(ProjectDir)\obj\$(Configuration)\$(Platform)\ + example-x64 + + + + Level3 + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + true + MultiThreaded + NoExtensions + Fast + false + NotUsing + + + Console + true + true + false + 5.1 + UseLinkTimeCodeGeneration + libcompat-x86.lib;%(AdditionalDependencies) + $(SolutionDir)\CompatLib\lib + + + + + Level3 + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + true + MultiThreaded + Fast + false + NotUsing + + + Console + true + true + false + 5.2 + UseLinkTimeCodeGeneration + libcompat-x64.lib;%(AdditionalDependencies) + $(SolutionDir)\CompatLib\lib + + + + + + \ No newline at end of file diff --git a/Example/Example.vcxproj.filters b/Example/Example.vcxproj.filters new file mode 100644 index 0000000..a12df58 --- /dev/null +++ b/Example/Example.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + \ No newline at end of file diff --git a/Example/src/main.cpp b/Example/src/main.cpp new file mode 100644 index 0000000..8a511e9 --- /dev/null +++ b/Example/src/main.cpp @@ -0,0 +1,17 @@ +/******************************************************************************/ +/* CompatLib for Windows XP, by LoRd_MuldeR */ +/* This work has been released under the CC0 1.0 Universal license! */ +/******************************************************************************/ + +#include + +#ifdef _M_X64 +# define ARCH_TYPE "x64" +#else +# define ARCH_TYPE "x86" +#endif + +int main() +{ + std::cout << "Hello World! [" << ARCH_TYPE << "]" << std::endl; +}