This repository is an unofficial repo for theForger's Win32 API Tutorial source code. No representation is made that this is my code, it's reproduced here simply so I don't forget about it and can easily reference it. All copyrights remain with theForger.
You'll need Visual Studio 2022 with the Desktop development with C++ workload installed. You should then be able to open any of the VS solution files and immediately build them. It may be possible to open the VS solution files using older (but still modern) versions of Visual Studio, but I've not tested this.
The solution and projects have been upgraded to VS 2022 Community Edition.
The projects successfully compile, but the source code and compiler/linker settings are dated, and so may generate compiler and security warnings during the build. These warnings don't stop the builds, but I strongly recommend you heed them before using any code in production. Remember that this is decades old Win32 code -- depending on what you're trying to do, more modern approaches such as C++/WinRT, WinUI 3, wxWidgets, Qt, Ultimate++, Boost, POCO C++, or newer additions to the C++ standard library (C++11 onwards) may be more appropriate.
When using any Win32 code from this repo in production, always consult the Windows API Index for relevant and updated API usage notes, as some APIs may have since been deprecated or had their behaviour modified in newer versions of Windows.
- Build desktop Windows apps using the Win32 API
- Get Started with Win32 and C++
- Windows API Index
- COM and ATL
- C++/WinRT
- Source code for Charles Petzold's Programming Windows 5th edition
- Source code for Jeffrey Richter and Christophe Nasarre's Windows via C/C++ 5th edition
- ZetCode's Windows API tutorial