From 3aa6d0980939e9b94c6f6525a7df7aa9dec37a1c Mon Sep 17 00:00:00 2001 From: Alexander Frick Date: Fri, 21 Nov 2025 23:14:06 -0600 Subject: [PATCH] move source files to src dir, add missing defines and linker flags to MSVS vcsproj files --- build.bat | 2 +- msvcrt.lib => src/msvcrt.lib | Bin resource.h => src/resource.h | 0 resource.rc => src/resource.rc | 0 xp_activate32.cc => src/xp_activate32.cc | 0 xp_activate32.h => src/xp_activate32.h | 0 xp_activate32.ico => src/xp_activate32.ico | Bin .../xp_activate32.manifest | 0 xp_activate32.vcxproj | 36 +++++++++++------- xp_activate32.vcxproj.filters | 10 ++--- 10 files changed, 29 insertions(+), 19 deletions(-) rename msvcrt.lib => src/msvcrt.lib (100%) rename resource.h => src/resource.h (100%) rename resource.rc => src/resource.rc (100%) rename xp_activate32.cc => src/xp_activate32.cc (100%) rename xp_activate32.h => src/xp_activate32.h (100%) rename xp_activate32.ico => src/xp_activate32.ico (100%) rename xp_activate32.manifest => src/xp_activate32.manifest (100%) diff --git a/build.bat b/build.bat index 86cca4e..e7892d4 100644 --- a/build.bat +++ b/build.bat @@ -1 +1 @@ -rc.exe resource.rc && cl.exe /arch:IA32 /O2 /GS- xp_activate32.cc xp_activate32.h resource.res /link /fixed /entry:entry /subsystem:windows,5.1 kernel32.lib user32.lib msvcrt.lib ole32.lib oleaut32.lib comctl32.lib +rc.exe .\src\resource.rc && cl.exe /arch:IA32 /O2 /GS- .\src\xp_activate32.cc .\src\xp_activate32.h resource.res /link /fixed /entry:entry /subsystem:windows,5.1 kernel32.lib user32.lib msvcrt.lib ole32.lib oleaut32.lib comctl32.lib diff --git a/msvcrt.lib b/src/msvcrt.lib similarity index 100% rename from msvcrt.lib rename to src/msvcrt.lib diff --git a/resource.h b/src/resource.h similarity index 100% rename from resource.h rename to src/resource.h diff --git a/resource.rc b/src/resource.rc similarity index 100% rename from resource.rc rename to src/resource.rc diff --git a/xp_activate32.cc b/src/xp_activate32.cc similarity index 100% rename from xp_activate32.cc rename to src/xp_activate32.cc diff --git a/xp_activate32.h b/src/xp_activate32.h similarity index 100% rename from xp_activate32.h rename to src/xp_activate32.h diff --git a/xp_activate32.ico b/src/xp_activate32.ico similarity index 100% rename from xp_activate32.ico rename to src/xp_activate32.ico diff --git a/xp_activate32.manifest b/src/xp_activate32.manifest similarity index 100% rename from xp_activate32.manifest rename to src/xp_activate32.manifest diff --git a/xp_activate32.vcxproj b/xp_activate32.vcxproj index 5aae423..bfd95f2 100644 --- a/xp_activate32.vcxproj +++ b/xp_activate32.vcxproj @@ -74,12 +74,14 @@ Level3 true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + WIN32;_WIN32;DEBUG;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true MultiThreadedDebug - Console + Windows + 5.01 + true true comctl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) @@ -90,12 +92,14 @@ true true true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + WIN32;_WIN32;NDEBUG;_NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true MultiThreaded - Console + Windows + 5.01 + true true true true @@ -106,11 +110,14 @@ Level3 true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + WIN32;_WIN32;WIN64;_WIN64;DEBUG;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true + MultiThreadedDebug - Console + Windows + 5.02 + true true commctrl.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) @@ -121,11 +128,14 @@ true true true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + WIN32;_WIN32;WIN64;_WIN64;NDEBUG;_NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true + MultiThreaded - Console + Windows + 5.02 + true true true true @@ -133,17 +143,17 @@ - + - + - - + + - + diff --git a/xp_activate32.vcxproj.filters b/xp_activate32.vcxproj.filters index 6792f16..51f26d3 100644 --- a/xp_activate32.vcxproj.filters +++ b/xp_activate32.vcxproj.filters @@ -15,25 +15,25 @@ - + Resource Files - + Source Files - + Header Files - + Header Files - + Resource Files