commit 89a2b2665099000e69ef8472055cee5f26150616 Author: ka1i Date: Sat Jul 12 21:30:54 2025 +0800 init: Win32 demo diff --git a/.vs/win32v1/v16/.suo b/.vs/win32v1/v16/.suo new file mode 100644 index 0000000..64ded03 Binary files /dev/null and b/.vs/win32v1/v16/.suo differ diff --git a/.vs/win32v1/v16/Browse.VC.db b/.vs/win32v1/v16/Browse.VC.db new file mode 100644 index 0000000..4add14c Binary files /dev/null and b/.vs/win32v1/v16/Browse.VC.db differ diff --git a/.vs/win32v1/v16/ipch/AutoPCH/6e6ec358eb886200/WIN32V1.ipch b/.vs/win32v1/v16/ipch/AutoPCH/6e6ec358eb886200/WIN32V1.ipch new file mode 100644 index 0000000..8380941 Binary files /dev/null and b/.vs/win32v1/v16/ipch/AutoPCH/6e6ec358eb886200/WIN32V1.ipch differ diff --git a/win32v1.sln b/win32v1.sln new file mode 100644 index 0000000..d507a2b --- /dev/null +++ b/win32v1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29102.190 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "win32v1", "win32v1\win32v1.vcxproj", "{FD42D894-9723-4F6F-B75F-603AE4C343BB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FD42D894-9723-4F6F-B75F-603AE4C343BB}.Debug|x64.ActiveCfg = Debug|x64 + {FD42D894-9723-4F6F-B75F-603AE4C343BB}.Debug|x64.Build.0 = Debug|x64 + {FD42D894-9723-4F6F-B75F-603AE4C343BB}.Debug|x86.ActiveCfg = Debug|Win32 + {FD42D894-9723-4F6F-B75F-603AE4C343BB}.Debug|x86.Build.0 = Debug|Win32 + {FD42D894-9723-4F6F-B75F-603AE4C343BB}.Release|x64.ActiveCfg = Release|x64 + {FD42D894-9723-4F6F-B75F-603AE4C343BB}.Release|x64.Build.0 = Release|x64 + {FD42D894-9723-4F6F-B75F-603AE4C343BB}.Release|x86.ActiveCfg = Release|Win32 + {FD42D894-9723-4F6F-B75F-603AE4C343BB}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {22DCD853-E39F-43DE-84CC-FC1A42E065A0} + EndGlobalSection +EndGlobal diff --git a/win32v1/framework.h b/win32v1/framework.h new file mode 100644 index 0000000..fd92714 --- /dev/null +++ b/win32v1/framework.h @@ -0,0 +1,14 @@ +// header.h: 标准系统包含文件的包含文件, +// 或特定于项目的包含文件 +// + +#pragma once + +#define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的内容 +// Windows 头文件 +#include +// C 运行时头文件 +#include +#include +#include +#include diff --git a/win32v1/win32v1.cpp b/win32v1/win32v1.cpp new file mode 100644 index 0000000..35086e7 --- /dev/null +++ b/win32v1/win32v1.cpp @@ -0,0 +1,10 @@ +// WindowsProject1.cpp : 定义应用程序的入口点。 +// + +#include "framework.h" + + +int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { + MessageBox(NULL, TEXT("Hello windows,are you there?"), TEXT("Hello world"), 1); + return 0; +} \ No newline at end of file diff --git a/win32v1/win32v1.vcxproj b/win32v1/win32v1.vcxproj new file mode 100644 index 0000000..c901cf8 --- /dev/null +++ b/win32v1/win32v1.vcxproj @@ -0,0 +1,162 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + {FD42D894-9723-4F6F-B75F-603AE4C343BB} + Win32Proj + win32v1 + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + + + Level3 + Disabled + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + + + Level3 + Disabled + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + + + Level3 + MaxSpeed + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + Level3 + MaxSpeed + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + \ No newline at end of file diff --git a/win32v1/win32v1.vcxproj.filters b/win32v1/win32v1.vcxproj.filters new file mode 100644 index 0000000..66d4530 --- /dev/null +++ b/win32v1/win32v1.vcxproj.filters @@ -0,0 +1,23 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;xsd + + + + + 头文件 + + + + + 源文件 + + + \ No newline at end of file diff --git a/win32v1/win32v1.vcxproj.user b/win32v1/win32v1.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/win32v1/win32v1.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file