C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
_ITERATOR_DEBUG_LEVEL – Advanced STL, Part 3
In Part 3 of my video lecture series exploring the Standard Template Library's implementation, I explain how our powerful correctness checks in debug mode work. In VC10, they're controlled by the macro _ITERATOR_DEBUG_LEVEL, which supersedes VC8 and VC9's more confusing _SECURE_SCL and _HAS_ITERATOR_DEBUGGING macros. Additionally, VC10's #pragma detect_mismatch allows the linker to detect badness that previously would have caused incomprehensible crashes. Finally, I demonstrate the undocumented and unsupported but exceedingly awesome compiler option /d1reportSingleClassLayout which prints an ASC...
Build Related Improvement in VS2010 SP1
Hi, my name is Li Shao. I am a Software Design Engineer in Test in C++ team. In VS2010, C++ has accomplished the migration of VCBuild to MSBuild based project and Build system. We have received very warm acceptance and overall customer satisfaction is very good. You can take a look of a few of my previous blogs (Native MultiTargeting, Conversion, Custom Build Rules) for some features and issues related to migration to MSBuild based build system for C++. VS2010 VS2010 SP1 release is around the corner. I would like to take this opportunity to let you know a few improvements that we have made in this area based on y...
The Visual C++ Weekly Vol. 1 Issue 14 (Apr 2, 2011)
Read in this issue:
Parallel Programming: Tasks and Continuations
Hi, I’m Charles Torre, Sr. Technographer with Channel 9. One of my goals is to make sure C++ has first class status on Channel 9. Make no mistake, the C++ Renaissance will be televised. :) I’ve recently been posting interviews on C9 with some of the VC++ team and a few of the VC++ MVPs like Kate Gregory. Today you'll meet some fellow native developers who are working hard to provide powerful C++ libraries for concurrency and parallelism. They need your feedback, so please download the header files today and play with the code! I recently visited the Parallel Computing Concurrency Runtime...
Released: Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1
An update to the Windows SDK for Windows 7 and .NET Framework 4 (Windows SDK 7.1) is now available. This update addresses the issue where Visual C++ Compilers and libraries that are installed with the Windows SDK are removed when Visual Studio 2010 Service Pack 1 is installed.Please follow this link to download and install the update.Our recommended install order is: You may eventually swap steps 3 and 4, still getting a successful scenario.You must have installed Windows SDK 7.1 in order to install the update. However, you do NOT have to have installed VS 2010 + SP1 – this update is al...
Troubleshooting Tips for IntelliSense Slowness
Hi, my name is Andy Rich and I’m a QA on the C++ front-end compiler. The IntelliSense system in Visual Studio 2010 comes with far greater power, flexibility, and accuracy, but these improvements come at the cost of greater complexity. The goal of this article is to assist you in troubleshooting this complex system, and give you a peek under the hood at how it works (and what to do when it doesn’t). The problem is usually PCHs Having spent a lot of time helping customers with slow IntelliSense, I have found that their performance issues are almost always related to PCH being disabled. For large C++...
The Visual C++ Weekly Vol. 1 Issue 13 (Mar 26, 2011)
Read in this issue:
Visual C++ Most Valuable Professionals (II)
A few days ago we posted a video where C++ MVP Kate Gregory talked about her community distinction, her motivations, thoughts about the role C++ plays in these days of computer programming, etc. Charles Torre, our interviewer in Channel 9, kept talking with other Visual C++ Most Valuable Professionals (MVPs). In this second part, you’ll meet Ángel Hernández (Australia), PJ Naughter (Ireland), Tom Serface (United States) and Sheng Jiang (United States), this last one recently nominated MVP of the Year for his labor answering questions in our C++ Forums in MSDN (congratulations and thank you,...
Exception Boundaries: Working With Multiple Error Handling Mechanisms
Greetings! I'm David Blaikie, Software Design Engineer at Microsoft and guest blogger here on VCBlog. I work in the Windows product group, writing test infrastructure tools in C++. One of the luxuries of the codebases I work in is that they are relatively modern and flexible. We use the full gamut of C++0x features implemented in Visual Studio 2010 including lambdas and rvalue references/move construction where possible. At a more fundamental level, we also choose to use exceptions. Though I won’t get into a debate on the pros and cons of different error handling techniques in this post, it suffices...