C++ Team Blog

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

Latest posts

Jan 21, 2014
Post comments count 0
Post likes count 0

STL Resources on MSDN

Eric Battalio

Before reviewing the excellent standard template library resources on MSDN (including Channel 9), did you know Visual Studio 2013.1 (Update 1) is available now? Brian Harry writes about the release on his blog, mentioning that the release is smaller and focused on working better with IE versions prior to IE 10. It is worth a read. You can grab the download through the usual channels including the Microsoft download center at http://go.microsoft.com/fwlink/?LinkId=301714. See a full description of the update in this kb: http://support.microsoft.com/kb/2911573/en-us.And now for STL goodness on MSDN: Shout out t...

Jan 16, 2014
Post comments count 0
Post likes count 0

Exception Boundaries

James McNellis

In modern C++, exceptions are the preferred method of runtime error reporting and handling. Yes, there are some cases where other forms of error reporting may be more appropriate—error codes, for example—but generally exceptions are preferred. When building a brand new library or application using C++, it's best to write exception-safe code and use exceptions consistently for error reporting. Even so, there are many cases where it is simply not possible to use exceptions or where exceptions must not be used. There's an awful lot of legacy C++ code that does not use exceptions, and worse, is not except...

Jan 15, 2014
Post comments count 0
Post likes count 0

Creating a C++ Project from a PDB file: PDB Project [[Version 2.0]]

Eric Battalio

We are thrilled to announce version 2.0 of the PDB Project extension on the Visual Studio Gallery. PDB Project, as the name suggests, takes the information contained in a .pdb file to create a C++ project. The Information extracted from the .pdb includes both the source files (.c, .cpp) used for building, as well as the sources of the linked libraries. The generated project will light up the IDE features including Find all References, GoToDefinition, and IntelliSense operations. One limitation of the current version of the extension is that the generated project cannot be built; so this extension cannot yet repla...

Jan 14, 2014
Post comments count 0
Post likes count 0

Kinect for Windows C++ Samples

Eric Battalio

Kinect for Windows enables developers like you to create applications that allow users to interact naturally with the computer by gesturing and speaking. You probably already know this. But did you know there are plenty of samples written in C++ using Direct 3D and Direct 2D and other DirectX stuff? Grab a Kinect and the Kinect SDK and build something cool!

Jan 9, 2014
Post comments count 0
Post likes count 0

Code Debugging Content in Community

Eric Battalio

A few days ago, we called out some of the great debugging topics on the Microsoft Developer Network (MSDN) Library. Here are some excellent resources outside of the MSDN Library (in no particular order except the last one): If you know of additional resources, add them to the comments (or send them to me, ebattali@microsoft.com) and I will update the article. Thanks!

Jan 7, 2014
Post comments count 0
Post likes count 0

Code Debugging Topics on MSDN

Eric Battalio

The MSDN Library is a rich source of information about Microsoft products and technologies including Visual Studio and Visual C++. This post calls out some of the great code debugging topics available for Visual C++ native code developers.The best starting point for (re)visiting debugging topics is the Debugger Roadmap. It contains links to many different task-based topics focused on debugging: Another good starting point for information about debugging in Visual Studio is (surprise!) Debugging in Visual Studio. Native code developers can start with Debugging Native Code. Is content missing? Share y...

Jan 2, 2014
Post comments count 0
Post likes count 0

Weathr, a 3D Weather App now on CodePlex

Eric Battalio

Welcome to 2014. May all your C++ code run perfectly! Thomas Petchel wanted really to explore the intersection among C++, DirectX, and XAML in the context of a Windows Store app. The result? Weathr, a 3D weather app for windows 8.1. It is a smooth, responsive app that shows weather information for different locations. To run it, you need Windows 8.1, Visual Studio 2013 (grab Visual Studio Express 2013), a Bing Maps API key (grab a trial key) and a World Weather Online API Key (grab a trial key). Open Visual Studio and add your keys to ServiceKeys.h and you are good to go. The app includes full source code a...

Dec 20, 2013
Post comments count 1
Post likes count 0

Asynchronous programming in C++ using resumable functions and await

Raman Sharma

As you know we recently released the Visual C++ Compiler November 2013 CTP. One of the many features in this CTP is the support for resumable functions and await. In this blog post, I want to touch upon some examples where these features make the experience of programming with asynchronous API much simpler. Example 1 The first example we are going to look at is the official File picker sample for Windows 8.1. If you open the solution for this sample using Visual Studio 2013, build and run, you will see an app like the below. Selecting Option 4 in this sample brings up the file picker dialog which allows you to ...

Dec 13, 2013
Post comments count 0
Post likes count 0

Developer Activities Survey Results Overview

Eric Battalio

Hi there! A few months ago, some of you took a survey on C++ developer activities, the results of which will be used to hone in on which areas to improve for the next release of Visual Studio. I wanted to take some time to share with you the preliminary results of the survey. Without further ado, out of the 47 tasks included on the survey, here's what we found out! "Aggregate Score" is the composite score from all respondents. "Normalized Score" is adjusted by the number of respondents for which the activity is meaningful for them. Survey says, normalized or not, these tasks are the most often performed by C++ d...