C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
Linux C++ improvements for cross-platform code sharing and type visualization
In Visual Studio 2017 we introduced the Linux development with C++ workload. This tutorial is going to walk through some of the improvements we have made in the 15.2 release using the classic spinning cube demo from Julien Guertault’s OpenGL tutorial. We have shown how to use this OpenGL demo in our Linux workload before. What we are showing here is how to use this as a single source base for both Windows and Linux using Shared Items in Visual Studio. From there we will show off some improvements we have made to debugger type visualization for Linux C++, for both natvis and Python pretty printing. C++ cross-plat...
C++17 Features In Visual Studio 2017 Version 15.3 Preview
CMake support in Visual Studio – what’s new in 2017 15.3 Preview
We are excited to announce the first preview release of Visual Studio 2017 15.3 update in conjunction with our Build 2017 conference! This preview includes two new features of interest to developers utilizing CMake. Support for the CMake Ninja generator and CMake CTest integration in the IDE. Please download the preview and try out the latest CMake features. If you are just getting started with CMake, follow the link to learn more about CMake support in Visual Studio. We are looking forward to your feedback. Build with Ninja You asked for support for more CMake build generators and we listened. The latest pr...
C++ at Microsoft Build 2017
The C++ team is at Build this week. Here are some of the highlights for C++ developers (and since there is a live stream and videos, you do not have to miss everything): We hope to see you there.
Using C++ Modules in Visual Studio 2017
点这里看中文版 This post was written by Gabriel Dos Reis, Andrew Pardoe, and Billy O’Neal What Is New? The Visual C++ Team is elated to announce that with Visual Studio 2017, it has substantially improved the quality of the C++ Modules TS implementation in Visual Studio, in addition to introducing ability to consume the C++ Standard Library via module interfaces. These module interfaces for the Standard Library, just like the compiler support for modules, are experimental and will evolve to track the standardization process. Getting Started Standard Library Modules support is included in Visual Studio 2017 RTM or new...
Why am I getting these _SCL_SECURE_NO_WARNINGS messages?
Recently, a C++ developer asked why they were getting diagnostic messages for this code: [code lang="cpp"] void example(char const * const src, char * const dest) { std::copy(src, src + 42, dest); } If you compile this file in debug mode, you'll get a message like the following:xutility(2350,1): warning C4996: 'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' _D...
Vcpkg: introducing export command
Vcpkg helps you acquire and build open source libraries on Windows. Since September 2016, the community added more than 200 libraries in the vcpkg catalog and has been contributing actively to the code itself. Vcpkg now supports Visual Studio 2015 and Visual Studio 2017 and can target dynamic or static libraries and platforms like x64, x86 or UWP. Today we are delighted to announce a new command: vcpkg export. As you told us in our recent survey, there is a need for a command that exports the binaries that you built using vcpkg. The purpose of this new command is to let you share and redistribute the binaries ge...
Visual Studio Code C/C++ extension April 2017 Update
Earlier today we shipped the April 2017 update to the C/C++ extension for Visual Studio Code. We are excited to introduce the following new features in this update: The original blog post has been updated with these changes. If you have this extension installed already, Visual Studio Code sends a notification for the update and installs the update for you automatically. If you haven’t installed it before, download the C/C++ extension for Visual Studio Code to try it out. Error Squiggles and Quick Info Enabling the features In this update, we’re shipping Error Squiggles and Quick Info as “experimen...
Getting Started with Visual Studio for C and C++ Development
Are you new to Visual Studio and working with C++? Then you’ve come to the right place. Whether you’re a student writing one of your first programs or a seasoned C++ developer with years of experience, you'll find Visual Studio to be a powerful environment for C++ development. Visual Studio is an IDE packed with features, from code browsing, colorization and navigation, to autocompletion of symbols, a built-in compiler and build system, a top of the line debugger, and built-in testing and code analysis tools. We have you covered from beginning to end, from code inception to continuous integration management, but ...