C++26 Reflection Practice 1: Basics and Enum-to-String

Tired of using heavy third-party libraries like magic_enum and relfection-cpp that abuse macro hacks and crush compiler template limits just to print an enum name? With C++26 Static Reflection...

Continue reading "C++26 Reflection Practice 1: Basics and Enum-to-String"

[中文] Reflection for C++26! 终于等到你

C++26 定稿,Reflection 提案投票通过 2025 年 6 月 21 日,著名微软工程师、C++ 标准委员会委员 Herb Sutter 在其个人博客发布了一篇博文《Trip report: June 2025 ISO C++ standards meeting (Sofia, Bulgaria) – Sutter’s Mill》。 A few minutes ago,...

Continue reading "[中文] Reflection for C++26! 终于等到你"

Introducing SvcHostify: Simplify Hosting Custom DLL Services

Have you ever struggled with hosting your own DLLs as Windows services using svchost.exe? Many developers face challenges due to the undocumented and restrictive nature of svchost.exe. That's whe...

Continue reading "Introducing SvcHostify: Simplify Hosting Custom DLL Services"

Controlling the C++ Runtime Linkage: A Portable Solution

A large number of open-source C++ projects choose Modern CMake as a powerful tool used for managing the building process across multiple platforms. Modern CMake refers to the practices, features, and...

Continue reading "Controlling the C++ Runtime Linkage: A Portable Solution"

Windows String Representations and Simple Conversions via __bstr_t

The Windows NT kernel (from WinNT to Windows 11) internally uses UTF-16 strings by default, including Windows Drivers, Native Applications and COM clients and servers, etc. All other common encodings...

Continue reading "Windows String Representations and Simple Conversions via __bstr_t"