C++ Team Blog

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

Latest posts

Mar 19, 2009
Post comments count 0
Post likes count 0

GS

Visual CPP Team

My name is Hongwei Qi and I am a Software Design Engineer in Test on the Visual C++ compiler code generation team. In this post I want to share with you the enhancements planned for the GS feature in Visual Studio 2010.  Evolution of GS A lot of code written in C and C++ has vulnerabilities that leave their users open to buffer overrun attacks. There are two major reasons for this. One reason is that the languages provide unfettered access to the vulnerable memory; the other reason is that developers make mistakes. The simple fact is that even following the best practices and performing quality checks, ...

Mar 16, 2009
Post comments count 0
Post likes count 0

Performance Tests

Visual CPP Team

Hello everyone, I’m Asmaa Taha; I’m a test developer in the Visual C++ compiler optimization test team.Our Team has various testing systems that automate the testing and reporting processes to convey the state of the product to our feature teams. Some of them are useful in automating the feature testing we have for the compiler (and making them go faster!). Others are useful in automating building real world code like Windows using the latest versions of our compiler in our labs. Last but not least, we have automation to measure the performance of our compiler.In this blog I will mainly talk about the...

Mar 10, 2009
Post comments count 0
Post likes count 0

Testing VC++ Compiler and Intellisense

Visual CPP Team

Hello,My name is Rashid Sarwar and I am on Visual C++ Compiler Front End team. I have been on this team for several months and have learned many things on how to test a complier. In this post I will be sharing with you how we test our Visual C++ compiler and it’s Intellisense. Testing features in a compiler is not easy as each feature/construct can interact with the already existing features/constructs in many different ways. Coming up with all the possible cases in which the new construct can be used is a big task as the Visual C++ compiler has many features, starting from standard C++ language featur...

Mar 2, 2009
Post comments count 0
Post likes count 0

Visual C++ Development Laboratory – May 4th through 8th, 2009

Visual CPP Team

Hello,   As you know, we love to come and visit our customers every chance we get (PDC, TechEd and various country tours), but this time we thought we would do something at our place. We are running a Development Laboratory here in Redmond from May 4th through 8th (this definitely does not preclude people from outside Redmond participating however we will not be covering your travel expenses.) Now, what’s a DevLab? Well, essentially developers come to the Platform Adoption Center and bring their projects and source code. We work closely to port their code, file bugs when they hit issues, and...

Feb 24, 2009
Post comments count 0
Post likes count 0

Quick Tips On Using Whole Program Optimization

Visual CPP Team

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 your compiles.  This flag tells the compiler to defer code generation until you link your program. Then at link time the linker calls back to the compiler to finish compilation. If you compile all your sources this way, the compiler optimizes your program as a whole rat...

Feb 18, 2009
Post comments count 0
Post likes count 0

MFC Restart Manager Support in VS2010

Visual CPP Team

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 can help applications maintain their data when an update needs to shutdown the application or when an unexpected software error or crash occurs. Instead of shutting down abnormally, Restart Manager enables an application to perform an application save before it is terminated. F...

Feb 3, 2009
Post comments count 1
Post likes count 0

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

Visual CPP Team

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 distinguish lvalues from rvalues, which very few C++98/03 programmers are extensively familiar with.   Fear not, for using rvalue references is easy, much easier than it initially sounds.  Implementing either move semantics or perfect forwarding in your own code boils down to foll...

Jan 27, 2009
Post comments count 0
Post likes count 0

Dev10 Is Just The Beginning

Visual CPP Team

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:   http://blogs.msdn.com/vcblog/archive/2007/12/18/intellisense-history-part-1.aspx http://blogs.msdn.com/vcblog/archive/2008/02/29/intellisense-part-2-the-future.aspx   Many thanks to Jim for his archeological dig through our old products and explanation of where we&...

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

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

Visual CPP Team

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++ Program Manger (PM) managing that relationship. He also works on many of  our C++0x and Libraries features, which turned out to be a fortunate match for a few reasons, firstly ConcRT/PPL benefits from using some new C++0x features (for example lambdas and support for t...