C++ Team Blog

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

Quick Tips On Using Whole Program Optimization

Hi, I’m Jerry Goodwin from the Visual C++ code generation and optimization team, with a couple quick tips on using Whole Program Optimization, also referred to as Link Time Code Generation (LTCG).  If you’re writing native C++ code, you can typically speed up your optimized code by about another 3-4% by adding the /GL flag to ...

MFC Restart Manager Support in VS2010

Hi, I am Weidong Huang, a Software Design Engineer in Test in the Visual C++ group.  Today I am going to talk about MFC’s support of Restart Manager functionality -- a very amazing feature in VS2010.   What is Restart Manager? Restart Manager is a new feature introduced by Microsoft’s Windows Vista operating system.  It...

Rvalue References: C++0x Features in VC10, Part 2

Part 1 of this series covered lambdas, auto, and static_assert.   Today, I'm going to talk about rvalue references, which enable two different things: move semantics and perfect forwarding.  This post will be long, because I'm going to explain how rvalue references work in great detail.  They're initially very confusing because they ...

Dev10 Is Just The Beginning

Hello, I’m Mark Hall, an architect in the Visual C++ group.  I wanted to follow up on Jim Springfield’s previous blogs about the history of C++ intellisense, and some of the changes we’re making in upcoming Visual Studio 10 release.  It’s been almost a year since Jim’s posts, which can be found here: &...

Channel 9 Video: Parallel Computing in Native Code: New Trends and Old Friends – Damien Watkins and others

Recently our colleagues over at PCP (the Parallel Computing Platform team) have been doing a number of  Channel 9 videos - on their most recent taping they asked Damien Watkins from VC++ to join them. Why? Well the focus of the video was around the journey towards getting the PCP bits shaped and shipped in VS2010. Damien has been the VC...

Moving Test Hooks Outside Your Product’s Source Code

 Hello, my name is Raul Perez, I’m part of the Visual C++ IDE team and I’m going to talk about test hooks. When writing automated testing for specific features in your applications you usually have to figure out how you’ll actually get the information you need without going through all the steps you would usually ...

VC9 SP1 Hotfix For The vector<function<FT>> Crash

Back in August, I blogged about the TR1 fixes in VC9 SP1.  An observant reader, grokbrsm, commented that vector<function<FT>> was broken by VC9 SP1.  A hotfix for this bug is now available:  Here is the updated link to download the hotfix: https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx...

MSBuild Task

Hello again! My name is Li Shao. I am a Software Design Engineer in Test in the Visual C++ group. As one of my colleagues, Marian Luparu, has blogged in detail about, and Soma has mentioned in his recent blog as well, one of the important features we have in VS2010 is to enable C++ customers to build C++ applications using MSBuild. MSBuild (...

VC++ are participating in a “Slow Chat” over at “Code Guru”

Hello Just a short note to let you know that members of VC++ are participating in a “Slow Chat” over at “Code Guru” this week. We always enjoy reading feedback and (hopefully) answering questions - and this gives us a different venue (and as they say “a change is as good as a holiday”.) http://www.codeguru...

Inheriting From a Native C++ Class in C#

Hi, this is Jim Springfield, an architect on the Visual C++ team.  I have blogged in the past about our IDE and Intellisense work.  I am still heavily focused on that and we are working hard to deliver an improved experience, but this post is about a completely different topic.  A few months ago, I started thinking about how to ...