C++ Team Blog

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

Latest posts

Boost.Test Unit Testing: Dynamic Library support and New Item Template
Jan 10, 2018
Post comments count 0
Post likes count 0

Boost.Test Unit Testing: Dynamic Library support and New Item Template

Nick Uhlenhuth
Nick Uhlenhuth

点这里看中文版 If you’re just getting started and want to learn more about C++ Unit Testing, check out our guide. We are excited to announce that, in addition to Boost.Test static library support, Visual Studio 2017 15.6 Preview 2 now offers Boost.Test dynamic library support and a Boost.Test item template. This means it is now easier than ever to incorporate Boost.Test unit tests into your Visual Studio projects. Boost.Test Dynamic Library If you are already using the Boost.Test dynamic library, your unit tests will be supported immediately. If you don’t already have Boost.Test on your machine, the simplest method f...

CMake Support in Visual Studio – Test Explorer Integration, CMake 3.10
Jan 10, 2018
Post comments count 0
Post likes count 0

CMake Support in Visual Studio – Test Explorer Integration, CMake 3.10

Will Buik
Will Buik

点这里看中文版 We are excited to announce new CMake features in Visual Studio 2017 version 15.6 Preview 2.  In the latest preview, we have improved CTest’s integration with the IDE, including rich support for the Google and Boost unit testing frameworks. If you are new to CMake in Visual Studio, check out how to get started. CTest in the Test Explorer with Google Test and Boost.Test Support One of the more frequent pieces of feedback we have received since adding basic support for CTest has been Test Explorer integration.  I am excited to announce that CTest is fully integrated into the IDE in the latest Visual Studi...

IntelliSense Enhancements for C++ Open Folder and CMake
Jan 10, 2018
Post comments count 0
Post likes count 0

IntelliSense Enhancements for C++ Open Folder and CMake

Will Buik
Will Buik

Today’s preview of Visual Studio 2017 version 15.6 Preview 2 includes two IntelliSense improvements to streamline code editing for C++ Open Folder and CMake. We added a new type of IntelliSense squiggle to C++ Open Folder and CMake to streamline cross-platform development.  We also now support a new heuristic and wildcard syntax to the include path for C++ Open Folder. If you are new to CMake or Open Folder in Visual Studio, check out how to get started with CMake or other C++ projects. Cross-Platform IntelliSense Squiggles If you do cross-platform development in Visual Studio with CMake or C++ Open Folder you a...

Debugging an embedded ARM device in Visual Studio
Jan 10, 2018
Post comments count 2
Post likes count 2

Debugging an embedded ARM device in Visual Studio

Marc Goodner
Marc Goodner

点这里看中文版 We introduced support for ARM GCC cross compilation in Visual Studio 2017 in the 15.5 release. With 15.6 Preview 2, we are adding support for debugging. This overview of debugging capabilities follows from the setup for getting started ARM cross compilation and will be integrated there as an addendum. First, it is important to ensure your output has debugging symbols. In the case of the GCC projects exported from the ARM online compiler, they do not. To add them, edit the makefile under the tools and flags section and add the -g flag for the GCC and G++ commands like the below. Now after you have built...

Visual Studio 2017 Throughput Improvements and Advice
Jan 4, 2018
Post comments count 0
Post likes count 0

Visual Studio 2017 Throughput Improvements and Advice

Terry Mahaffey
Terry Mahaffey

点这里看中文版 As C++ programs get larger and larger and the optimizer becomes more complex the compiler's build time, or throughput, increasingly comes into focus. It's something that needs to be continually addressed as new patterns emerge and take hold (such as "unity" builds in gaming). It's something we're focusing on here in the Visual C++ Team, and has become a major point of emphasis during the most recent 15.5 release and will continue to be going forward. I want to take a few minutes to update everyone on some of the specific changes we've made to help with your compile times, and provide a few tips on how y...

C++17 Progress in VS 2017 15.5 and 15.6
Dec 19, 2017
Post comments count 0
Post likes count 0

C++17 Progress in VS 2017 15.5 and 15.6

Stephan T. Lavavej - MSFT
Stephan T. Lavavej - MSFT

Image Watch is now available for Visual Studio 2017
Dec 14, 2017
Post comments count 0
Post likes count 0

Image Watch is now available for Visual Studio 2017

Marian Luparu
Marian Luparu

点这里看中文版 Image Watch is a Visual Studio extension that provides a watch window for viewing in-memory bitmaps when debugging native C++ code. It comes with built-in support for OpenCV image types (e.g. cv::Mat, cv::Mat_<> , etc.). We know that, for many of you, this is an important part of your C++ debugging experience. We have received many requests to support this extension on Visual Studio 2017 via survey responses, blog comments and Reddit conversations. We’re happy to announce that Image Watch for Visual Studio 2017 is now available for download in Visual Studio Marketplace. Getting started with Op...

Broken Warnings Theory
Dec 13, 2017
Post comments count 1
Post likes count 1

Broken Warnings Theory

Yuriy Solodkyy
Yuriy Solodkyy

Перевод статьи на русском The "broken warnings theory" is a fictional theory of the norm-setting and signaling effect of coding practices and bug-checking techniques in 3rd party libraries on new bugs and design anti-patterns. The theory states that maintaining and monitoring warning levels to prevent small problems such as "signed/unsigned mismatch", "no effect before comma", and "non-standard extension used" helps to create an atmosphere of order and lawfulness, thereby preventing more serious bugs, like buffer overruns, from happening. Visual Studio 2017 version 15.6 Preview 1 comes with new ways to make...

Android NDK R15C support goes in-box in Visual Studio 2017 Version 15.6 Preview
Dec 13, 2017
Post comments count 1
Post likes count 0

Android NDK R15C support goes in-box in Visual Studio 2017 Version 15.6 Preview

Rong Lu
Rong Lu

Visual Studio has provided in-box support for building C++ Android and iOS apps or libraries since VS 2015, enabling cross-platform C++ mobile development with full editing and debugging capabilities all in one single IDE. Just recently, we updated the tools to make it easier for you to work with newer versions of the Android platform. This includes built-in support for Android SDK API level 25 that was shipped in VS 2017 Version 15.5 and support for Android NDK R15C that just went out last week in the first preview of VS 2017 Version 15.6. You can either download the Preview, or, if you already have it installe...