Using MinGW and Cygwin with Visual C++ and Open Folder

Building cross-platform C and C++ code is easier than ever with Visual Studio 15.3 Preview 4.  The latest preview improves support for alternative compilers and build environments such as MinGW and Cygwin.  MinGW (Minimalist GNU for Windows), in case you are not familiar with it, is a compiler in the GCC family designed to run… Read more

Visual Studio Code C/C++ extension July 2017 Update – time to try out the new IntelliSense!

2 million downloads! This is very exciting for the Visual Studio Code C/C++ extension, considering it was just 4 months ago when we hit the 1 million milestone! Today we are shipping the July 2017 update to the extension. Besides several bug fixes, we are continuing to polish the new IntelliSense experience that we shipped… Read more

Precompiled Header (PCH) issues and recommendations

This post written by Mark Hall, Xiang Fan, Yuriy Solodkyy, Bat-Ulzii Luvsanbat, and Andrew Pardoe. Precompiled headers can reduce your compilation times significantly. They’ve worked reliably for millions of developers since they were introduced 25 years ago to speed up builds of MFC apps. Precompiled headers are widely used: they are enabled by default for… Read more

Microsoft Visual Studio 2017 Supports Intel® AVX-512

For this post we welcome John Morgan from Intel Corporation as guest author on the Visual Studio Blog. John has been with Intel for nine years, but his contributions to the Microsoft compiler stretch back through two decades and three other companies. He gratefully acknowledges help with this post from others at Intel and Microsoft…. Read more

June C++ Link Roundup

C++ link roundup for June: In the latest CppCast <chrono> and more with Howard Hinnant, Rob Irving and Jason Turner interview the author of several C++11 and 14 features Howard Hinnant. PJ Naughter has created a C++ framework called Toast++ which allows for easy integration of Windows UWP Notification toasts in desktop Win32 applications. The Mozilla… Read more

Security Features in Microsoft Visual C++

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… Read more

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

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… Read more

C++ Tutorial: Debugging Overview

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… Read more

C++ Tutorial: Hello World

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… Read more

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

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… Read more