Showing results for September 2022 - C++ Team Blog

Sep 28, 2022
6
4

Using system package manager dependencies with vcpkg

Daniel Shaw
Daniel Shaw

According to the C++ 2022 developer survey, the top 3 ways to manage C++ libraries were having the library source code as part of the build, compiling the library separately from instructions, and acquiring the library from a system package manager. Language package managers, such as vcpkg, simplify library management by offering the ease of use of...

C++Vcpkg
Sep 21, 2022
2
3

A Visual Studio Debugger Extension for the Raspberry Pi Camera

Paul Maybee
Paul Maybee

While developing a sample application for a Raspberry Pi with a camera using the RaspiCam library, it occurred to me that it would be convenient and fun to be able to see the current camera input while debugging the application.  The Visual Studio debugger supports type-specific custom visualizers and end-user extensions that implement UI for these...

C++Linux
Sep 20, 2022
4
1

Microsoft C++ Code Analysis Warnings with Key Events

Hwi-sung Im
Hwi-sung Im

Introduction  To make your C++ coding experience as safe as possible, the Microsoft C++ Code Analysis has added new checks and improved existing ones to help you prevent bugs before they find their way into your products. Some of the checks work harder than others, analyzing the code deeper by simulating runtime behavior. As such, they can find de...

C++New Feature
Sep 16, 2022
5
3

The Future of C++ Compiler Diagnostics in MSVC and Visual Studio

Xiang Fan
Xiang Fan

We are working hard on improving the diagnostics experience in MSVC and Visual Studio. We began this work in Visual Studio 2022 version 17.3 and while not everything is ready yet, we would like to share the early progress. Motivation & Principles New C++ features like concepts and ranges present the opportunity for more expressive code an...

DiagnosticsC++
Sep 14, 2022
2
5

Dev Containers for C++ in Visual Studio

Marc Goodner
Marc Goodner

We are happy to share with you that we have added Dev Container support In Visual Studio 2022 17.4 for C++ projects using CMake Presets. Containers are a great way to package up everything for running an application. Through a Dockerfile all prerequisites are captured so that there is a consistent runtime environment anywhere the container is de...

C++
Sep 14, 2022
0
4

vcpkg Environment Activation in Visual Studio

Marc Goodner
Marc Goodner

In Visual Studio 2022 17.4 vcpkg environments will now automatically activate. A vcpkg environment is described by a manifest that captures the artifacts necessary for building your application (learn more about vcpkg artifacts). Today the vcpkg artifact experience is focused on embedded developers, but we will be expanding this in time to all C++ ...

VcpkgC++embedded
Sep 12, 2022
5
9

Integrating C++ header units into Office using MSVC (1/n)

Cameron DaCamara Zachary Henkel
Cameron,
Zachary

.cameron { color: #4472c4; } C++20 has had a lot to offer and one feature in particular requires the most thought of all when integrating into our projects: C++ modules (or C++ header units in this particular case). In this blog we will show a real world case of integrating a new C++20 feature into a large codebase that we might all...

C++General C++ Series
Sep 12, 2022
1
2

Microsoft C++ Team at CppCon 2022

Sy Brand
Sy Brand

The Microsoft C++ team has an exciting lineup of sessions at CppCon 2022. Many of us will also be present at our team’s booth in the main hall for the first two days of the conference. Come say hi and let us know if you have any questions about our talks, products, or anything else! You can also join the #visual_studio channel on the CppCon Dis...

C++Announcement
Sep 1, 2022
9
6

Importing ST projects into Visual Studio Code

Marc Goodner
Marc Goodner

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 configura...

C++VcpkgNew Feature