C++ Team Blog

The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team

Latest posts

Mar 6, 2023
Post comments count 1
Post likes count 0

vcpkg 2023.02.24 Release: Default Triplet Changes, RISC-V support, Bug Fixes, and More…

Augustin Popa

The 2023.02.24 release of the vcpkg package manager is available. This blog post summarizes changes from January 10th, 2023 to February 24th, 2023 for the Microsoft/vcpkg, Microsoft/vcpkg-tool, and Microsoft/vcpkg-docs GitHub repos. Some stats for this period:   Notable Changes Notable changes for this release are summarized below:   Upcoming Default Triplet Changes Starting with the September 2023 vcpkg tool release, the default triplet for vcpkg libraries for Windows users will change from x86-windows to a detected host triplet. The detected host triplet will be infe...

Mar 6, 2023
Post comments count 2
Post likes count 1

std::string now supports Address Sanitizer

Nicole Mazzuca

The standard library now checks for more incorrect usage using the ASan "container overflow" feature in `std::string`.

Mar 3, 2023
Post comments count 1
Post likes count 3

Code Analysis Improvements in Visual Studio 17.6

Gabor Horvath

Code Analysis Improvements in VS 17.6

Feb 28, 2023
Post comments count 2
Post likes count 7

Importing ST projects into Visual Studio

Marc Goodner

Last year we introduced the ability to import ST projects in Visual Studio Code. We’re happy to announce the availability of this feature in Visual Studio 2022 17.6 as well. In the world of Arm microcontrollers there are many silicon vendors, one of the largest is STMicroelectronics. ST has a large catalog of available devices with many capabilities as well as supporting development boards for evaluating them. They also produce STM32CubeIDE, a custom IDE to use when targeting their devices, and STM32CubeMX, a configuration tool used in configuring properties of their devices and generating projects. If you ...

Feb 28, 2023
Post comments count 0
Post likes count 0

An alternative to __if_exists in ATL

Anju Del Moral Gonzalez

What are and The and keywords in the Active Template Library (ATL) allow a user to test at compile time whether an identifier exists.  If the identifier exists, the associated statement block is executed.  and can be applied to the names of variables, functions, typedefs, as well as other identifiers.  You can read more about the specifics of their use and potential pitfalls on MSDN, and in Raymond Chen’s blogpost about the keywords. Why you shouldn’t use or Although these keywords seem like they’d be useful, they’ve been problematic for years.  Also, and are also incompatible with the recommended comp...

Feb 27, 2023
Post comments count 2
Post likes count 2

View files on your Remote Machines using the new Remote File Explorer in Visual Studio

Sinem Akinci

We are excited to announce that we have added a new tool window, the Remote File Explorer, to Visual Studio in version 17.6 Preview 1.  This window provides you with the ability to browse, upload, and download files and folders on your remote machines that you are connected to via the Connection Manager within your Visual Studio instance.   How do I access the Remote File Explorer?  To access the Remote File Explorer, download the latest version of Visual Studio and ensure “Remote File Explorer for Linux” is checked under the optional downloads in the Linux and embedded development with C++ toolset:   ...

Feb 22, 2023
Post comments count 5
Post likes count 12

CMake debugger allows you to debug your CMake scripts and more

Sinem Akinci

The VS CMake team has been working in close collaboration with Kitware on developing a debugger for CMake scripts in the Visual Studio IDE (see this open Kitware issue for more details). We will be contributing this work back upstream (targeting the 3.27 release) so that the developer community can have it and work to improve it together, by adding new features and support for additional DAP capabilities.  We are excited to announce that a preview of the CMake debugger is now available to debug your CMake scripts and CMakeLists.txt file for any CMake project in Visual Studio 17.6 Preview 1.   To initiate a ...

Feb 21, 2023
Post comments count 14
Post likes count 2

Visual Studio 2022 version 17.5 for C++ Developers

Sy Brand

We are happy to announce that Visual Studio 2022 version 17.5 is now generally available! This post summarizes the new features you can find in this release for C++. See the Visual Studio 17.5 announcement to learn about all of the features in the release. You can download Visual Studio 2022 from the Visual Studio downloads page or upgrade your existing installation by following the Contents Arm64 In 17.3 you could use Visual Studio as a native Arm64 application. In 17.4 you could use our native Arm64 toolchain in production. Continuing our progress, in 17.5 you can now obtain a native ...

Feb 16, 2023
Post comments count 14
Post likes count 7

Unreal Engine Integrations Now Available in Visual Studio 2022

David Li

Since the release of Visual Studio 2022, we have been focusing on building a cascade of productivity and performance improvements for game and large project developers. Today, we are happy to share the next set of features specifically aimed towards improving productivity for Unreal Engine development. We have heard and seen a tremendous amount of valuable feedback from you, our game developers. We want to give a special shoutout to all who participated in surveys, left Developer Community suggestions, and chatted with us on social media. These features wouldn’t have been possible without you. In this blog...