r/cpp • • Sep 05 '26

Escaping `CreateProcess()` arguments on Windows

https://holyblackcat.github.io/blog/2026/09/05/escaping-createprocess-arguments.html
93 Upvotes

44 comments sorted by

View all comments

Show parent comment

5

u/Shaurendev Sep 05 '26

Mostly everyone defines UNICODE and uses the macros.

If you don't explicitly opt into it, its state is different depending on what build system you use

If you maintain MSBuild projects/solutions directly, it is enabled by default.

If you use CMake, it is not enabled by default (even if you generate MSBuild projects from it)