C++ Team Blog

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

Latest posts

Jun 28, 2017
Post comments count 0
Post likes count 0

Security Features in MSVC

Andrew Pardoe

Shareable link: https://aka.ms/msvcsecurity 点这里看中文版 Every developer makes mistakes. No matter how careful you are when writing code, you will introduce bugs. And any bug can become a security vulnerability when software that runs in a connected environment or is used long past its initially planned lifespan. Code that isn't correct is insecure code. The Microsoft Visual C++ toolset offers numerous features that help you write secure, correct code from before you start typing code until after you’ve shipped it to your users. For more information on specific security features in the MSVC toolset, make sure you r...

Jun 27, 2017
Post comments count 0
Post likes count 0

Visual Studio Code C/C++ extension June 2017 Update

Greazer

Today we are excited to announce the release of the June 2017 update of the C/C++ extension for Visual Studio Code. This update enables semantic-aware member list auto-completion and improves the overall default IntelliSense behavior, providing a smoother out-of-box IntelliSense experience. If you haven't tried it before, download VS Code (Stable build) or VS Code Insiders. Then download the C/C++ extension for Visual Studio Code to try it out. If you have this extension installed already, VS Code will notify you of the update and install it automatically. The original blog post, which provides an overview of...

Jun 23, 2017
Post comments count 0
Post likes count 1

C++ Tutorial: Debugging Overview

Eric Battalio

Welcome to the C++ Tutorial series. In this article, we explore debugging concepts and do some hands-on debugging with Visual Studio 2017. One of the most useful features of an IDE  is the debugger. Under a debugger, you can step through code as it is running, examining the values of variables, structures, program flow, screen output, and other elements of the application for errors. It is slower than running the program outside of the debugger, but vital to understanding the inner workings of an application. When Debugging Helps Even the best developers make mistakes. That is why the best developers know their ...

Jun 16, 2017
Post comments count 0
Post likes count 2

C++ Tutorial: Hello World

Eric Battalio

Welcome to the C++ Tutorial. In this first C++ tutorial, you will learn how to write (and run!) your first C++ program, “Hello, World!”. Along the way you will learn a little C++ history, see how to configure a C++ console application in Visual Studio 2017, walk through code structure, and see how code is built. Acknowledgements This tutorial series is a remix of C++: A General Purpose Language and Library Jump Start, an all-day course presented by Kate Gregory and James McNellis and hosted on Microsoft Virtual Academy and the evolution of that content as beginner and intermediate courses on EdX by Gerry O’B...

Jun 14, 2017
Post comments count 0
Post likes count 0

CMake support in Visual Studio – what’s new in 2017 15.3 Preview 2

Will Buik

We're excited to announce improved CMake and Ninja support in Visual Studio 15.3 Preview 2.  In this preview, we have updated CMake from version 3.7.2 to version 3.8 and added improved support for the CMake Ninja generator.  Additionally, this preview includes several fixes for community reported bugs. 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. CMake Tools Upgraded to use CMake 3.8 We are trying to keep the version of CMake that is incl...

Jun 1, 2017
Post comments count 0
Post likes count 0

Spring 2017 Visual C++ Migration Survey

Eric Battalio

The Spring 2017 Visual C++ Migration Survey is now open. Please take a few minutes to share your experiences, positive or not so positive. If you have not migrated, please let us know why. Share your candid feedback now! Thank you.  

May 19, 2017
Post comments count 0
Post likes count 0

Visual Studio Code C/C++ extension May 2017 Update

Rong Lu

Earlier this month, the C/C++ extension for Visual Studio Code hit another exciting milestone – it has been installed over 1.5 million times since it first shipped in March last year! Thanks to everyone who has sent us feedback to help us make it this far. We will continue to make improvements to the extension based on your feedback. Today we are shipping the May 2017 update to the C/C++ extension for Visual Studio Code. In addition to several bug fixes, this update added auto-completion for keywords, enables error squiggles and quick info which shipped in April as experimental features, and improves the exper...

May 19, 2017
Post comments count 0
Post likes count 0

Using C++ Coroutines with Boost C++ Libraries

Eric Battalio

This article was written by Gor Nishanov. Last month, Jim Springfield wrote a great article on using C++ Coroutines with Libuv (a multi-platform C library for asynchronous I/O). This month we will look at how to use coroutines with components of Boost C++ libraries, namely boost::future and boost::asio. Getting Boost If you already have boost installed, skip this step. Otherwise, I recommend using vcpkg to quickly get boost installed on your machine. Follow the instructions to get vcpkg and then enter the following line to install 32bit and 64bit versions of boost: To make sure everything got installed co...

May 10, 2017
Post comments count 0
Post likes count 0

Unit Testing and the Future: Announcing the Test Adapter for Google Test

Augustin Popa

The Visual C++ team is always looking for ways to improve the Visual Studio experience for C++ developers, regardless of their preferred development workflow. This time the focus is on unit testing. While Visual Studio has shipped with a native C++ test framework for a number of releases along with testing tools in the IDE, we recognize that there are a variety of C++ unit testing frameworks out there that developers may choose. Last year, we put out a survey to learn more about C++ developers use native unit testing to find problems with their code. Several test frameworks popped up frequently, most notably Goog...