C++ Team Blog

C++ tutorials, C and C++ news, and information about Visual Studio, Visual Studio Code, and Vcpkg from the Microsoft C++ team.

Finding Bugs with AddressSanitizer: MSVC Compiler
Finding Bugs with AddressSanitizer: MSVC Compiler
Special thanks to Aaron Gorenstein for authoring this blog post. The AddressSanitizer (ASan) is generally available for MSVC since the recently-released Visual Studio 2019 version 16.9. We’ve already shown how easy it can be to find bugs in even production-ready code like EASTL. Here I’ll share an example of how it found a real bug in ...
Sign Up for the Pure Virtual C++ 2021 Conference
Sign Up for the Pure Virtual C++ 2021 Conference
Last year we ran the first Pure Virtual C++, a free one-day virtual conference for the whole C++ community. This May we're doing it again! Sign-up for free on the website to be the first to hear about our program schedule, access our extra on-demand C++ demos, and get more virtual surprises. The live event will run May 3rd 14:30-17:30 ...
vcpkg Host Dependencies for Cross-Compilation
vcpkg Host Dependencies for Cross-Compilation
If you’re not familiar with our C++ library manager vcpkg, welcome! This post covers an intermediate/advanced topic, so you may want to first get an overview and try things out from the vcpkg GitHub page or some of our previous blogs.   Introduction One of the best features of C++ is that it generates tailored, specialized code for...
IntelliSense Improvements in Visual Studio 2019
IntelliSense Improvements in Visual Studio 2019
We’ve made many great improvements to C++ IntelliSense over the course of the Visual Studio 2019 release. We’ve collected a few of the highlights in case you are interested in upgrading to Visual Studio 2019 or just want to learn how to be more productive when writing C++ code. If you have followed our blog since the 2019 Previews, you may...
Address Sanitizer for MSVC Now Generally Available
Address Sanitizer for MSVC Now Generally Available
 This post was last updated on March 10th, 2021. Special thanks to Aaron Gorenstein who provided most of the content for this blog post. Special thanks as well to Kevin Cadieux and Jim Radigan who also made contributions.   You can check out a demo on this feature in the latest Visual Studio Toolbox episode on YouTube: Visual Studio ...
Microsoft C++ Team at ACCU 2021
Microsoft C++ Team at ACCU 2021
Sy Brand and Erika Sweet from the Microsoft C++ Team will be presenting at ACCU 2021 this week. Come say hi in the virtual conference space and let us know if you have any questions about our talks, products, or anything else. We also recommend dropping by the #include <C++> table in the expo hall to learn more about their ...
Remote Debug Support in Visual Studio 2019
Remote Debug Support in Visual Studio 2019
Visual Studio 2019 offers remote debug support for MSBuild and CMake projects targeting Windows and Linux. Thanks to remote debugging, our customers can target a wider, more diverse range of scenarios. We offer the flexibility to customize your deployment and automatically copy any dependencies needed to the target machine.
Registries: Bring your own libraries to vcpkg
Registries: Bring your own libraries to vcpkg
Special thanks to Nicole Mazzuca for providing the content of this blog post. Are you working on a C++ project with library dependencies? Are you tired of maintaining a custom-built package management workflow with duct tape and git submodules? Then you should consider trying out a package manager. Perhaps you have been side-eyeing vcpkg ...
Take control of your vcpkg dependencies with versioning support
Take control of your vcpkg dependencies with versioning support
Special thanks to Victor Romero for putting together the content for this blog post. We have an exciting new feature to announce in vcpkg: the long-awaited and highly requested package versioning! This feature makes it possible to install specific versions of dependencies and control installed versions over time. In order to use this ...