C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
Visual Studio Code C/C++ extension March 2017 Update
Last week marked an important and exciting milestone for the C/C++ extension for Visual Studio Code: this extension has been installed for over 1 million times since it shipped just a year ago! Thanks to everyone who tried it and provided us invaluable feedback to help shape the extension what it is today. But we are still early in this journey! We have been and will continue to add features and fixes to the extension. So please keep your feedback coming! Just last week we shipped another update (March 2017) to the C/C++ extension for Visual Studio Code. The original blog post has been updated with changes in th...
Finding installed Visual C++ tools for Visual Studio 2017
There have been a number of questions from customers about how to locate the tools in the world of this new installation model. The following blog post will share a number of options available for locating Visual Studio 2017 instances and provides various samples that illustrates the process in action. How to find installed Visual Studio 2017 instances and C++ tools There are multiple ways you can go about the finding the VS instances installed and determining the tools installed for each instance. 1. vswhere.exe: A stand-alone native executable that is redistributable and can be used to locate installed...
Always Set Impossible Goals
Impossible goals are like dreams, we always pursue them, with the hopes they will come true. In one of my recent experiences, I managed a feature crew, C++ Fast Project Load (FPL), a team of exceptional people. Personally, I'm very passionate about performance, as I believe it makes our interaction with our beloved machines much more satisfying. As large codebases grow over time, they tend to suffer from a slow performance loading and building in Visual Studio. Most of the root causes were originating from our project system architecture. For years, we made decent improvements (percentages), just to see them wip...
Happy 25th Birthday MFC!
February 26th marks the 25th anniversary for the Microsoft Foundation Classes (MFC). Join us in wishing MFC a big Happy Birthday! MFC saw the light of day on February 26th 1992 and it has been a very large part of the Microsoft C++ legacy ever since. While Visual C++ 1.0 would only ship one year later (with MFC 2.0), in 1992 MFC 1.0 was laying the foundation as part of the Microsoft C/C++ 7.0 product. Here’s a snippet of that announcement that we dusted off from the Microsoft archives: SANTA CLARA, Calif. -- Feb.26, 1992 Microsoft Debuts C/C++ 7.0 Development System for Windows 3.1 High-Performance Object Tech...
Learn C++ Concepts with Visual Studio and the WSL
点这里看中文版 Concepts promise to fundamentally change how we write templated C++ code. They're in a Technical Specification (TS) right now, but, like Coroutines, Modules, and Ranges, it's good to get a head start on learning these important features before they make it into the C++ Standard. You can already use Visual Studio 2017 for Coroutines, Modules, and Ranges through a fork of Range-v3. Now you can also learn Concepts in Visual Studio 2017 by targeting the Windows Subsystem for Linux (WSL). Read on to find out how! About concepts Concepts enable adding requirements to a set of template parameters, essentially ...
Continuous Integration for C++ with Visual Studio Team Services
Visual Studio Team Services (VSTS) is an easy way to help your team manage code and stay connected when developing. VSTS supports continuous integration using a shared code repository that everyone on the team uses to check in code changes. Every time any code is checked in, it is fully integrated by running a full automated build. By integrating frequently, it is easier for you to discover where something goes wrong so you can spend more time building features, and less time troubleshooting. You can now take advantage of new documentation that makes it easier for you to use continuous integration with C++ code ...
Vcpkg recent enhancements
Vcpkg simplifies acquiring and building open source libraries on Windows. Since our first release we have continually improved the tool by fixing issues and adding features. The latest version of the tool is 0.0.71, here is a summary of the changes in this version:See the Change Log file for more detailed description: https://github.com/Microsoft/vcpkg/blob/master/CHANGELOG.mdAs usual your feedback and suggestions really matter. To send feedback, create an issue on GitHub, or contact us at vcpkg@microsoft.com. We also created a survey to collect your suggestion.
Targeting the Windows Subsystem for Linux from Visual Studio
Update Jan. 8, 2020: Visual Studio 2019 version 16.1 and later has native support for WSL. This eliminates the need to establish an SSH connection and is the recommended workflow for building and debugging on WSL. The Windows Subsystem for Linux (WSL) was first introduced at Build in 2016 and was delivered as an early beta in Windows 10 Anniversary Update. Since then, the WSL team has been hard at work, dramatically improving WSL’s abilty to run an ever increasing number of native Linux command-line binaries and tools, including most mainstream developer tools, platforms and languages, and many daemons/service...
STL Fixes In VS 2017 RTM
VS 2017 RTM will be released soon. VS 2017 RC is available now and contains all of the changes described here - please try it out and send feedback through the IDE's Help > Send Feedback > Report A Problem (or Provide A Suggestion). This is the third and final post for what's changed in the STL between VS 2015 Update 3 and VS 2017 RTM. In the first post (for VS 2017 Preview 4), we explained how 2015 and 2017 will be binary compatible. In the second post (for VS 2017 Preview 5), we listed what features have been added to the compiler and STL. (Since then, we've implemented P0504R0 Revisiting in_place_t/in_...