C++ / Practical guides
How-to guides for C++ in Visual Studio
Step-by-step answers to the tasks C++ developers meet in Visual Studio. For a specific error code, see the guides to MSVC build errors.
How-to guide
Speed up C++ builds in Visual Studio
Make MSVC builds faster: measure them, compile in parallel with /MP, use precompiled headers, include less, and link faster in Debug.
Read guideHow-to guide
Precompiled headers in Visual Studio
How to set up a precompiled header (pch.h, /Yc and /Yu) in a Visual Studio C++ project, what to put in it, and how to fix its errors.
Read guideHow-to guide
Use vcpkg libraries in Visual Studio
Add C++ libraries to a Visual Studio project with vcpkg in manifest mode, choose the right triplet, and fix the errors it causes.
Read guideHow-to guide
Upgrade an old C++ project to a newer Visual Studio
Move a C++ project from an older Visual Studio to Visual Studio 2022 or 2026: retarget the toolset and SDK, then fix the new errors.
Read guideHow-to guide
Analyze a crash dump in Visual Studio
Create a .dmp file when a C++ program crashes, open it in Visual Studio with the right symbols, and read the exception and call stack.
Read guideUsing CppPilot in Visual Studio
CppPilot connects your own Codex or Claude account to Visual Studio. If you have neither, CppPilot Cloud provides AI access for build fixes, reviews, crash analysis, and project checks. AI chat requires your own Codex or Claude account.