C++ Team Blog

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

Latest posts

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

Channel 9 Video: Stephan T. Lavavej – Everything you ever wanted to know about nullptr

Visual CPP Team

Stephan T. Lavavej is back in front of the Channel 9 cameras once again for a discussion on our recently implemented C++0x feature “nullptr”. In a previous channel 9 appearance, Stephan spoke about the C++0x language and library features we were implementing for VS2010  and the various interdependencies between various features (for example, how rvalue references – a language feature – enable move semantics and perfect forwarding in our Standard Template Library implementation – a library feature.) In this video Stephan describes how rvalue references exposed a few loopholes in ...

Oct 22, 2009
Post comments count 0
Post likes count 0

Visual Studio 2010 Beta 2 Is Now Available For Download

Visual CPP Team

We are very pleased to announce we have released Visual Studio 2010 Beta 2.  You can read the official Beta 2 announcement on Soma’s blog. The Visual C++ team has added a few new features and, of course, many bug fixes. The additional features include some substantial new functionality in the MFC library and the return of the MFC Class Wizard. We  are currently filming some Channel 9 videos and writing a few VC Blog posts. Our first two Channel 9 videos on Beta 2 are already online.  The video on the C++0x Language feature “nullptr”  is here and the video on the MFC features ...

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

Visual C++ Code Model in Visual Studio 2010

Visual CPP Team

Hello, I’m Vytautas Leonavičius, a developer on the Visual C++ IDE team. Today, I’d like to discuss how the new principles we’re applying to code browsing in Visual Studio 2010 (see here and here) will affect VCCodeModel.  General information about VCCodeModel can be found here.ImprovementsBecause of our new incremental update architecture, VCCodeModel implicitly gets certain benefits:•        Availability: Once initial population is done, VCCodeModel is pretty much always available. That is a positive result of design decisions to parse files in...

Oct 8, 2009
Post comments count 0
Post likes count 0

The ATL/MFC Trace Tool and the Tracing Mechanism

Visual CPP Team

Hi, I am Pat Brenner, a Software Design Engineer in the Visual C++ Libraries group.  Some time back I wrote about Spy++.  Today, I am going to write about another Visual Studio debugging tool, the ATL/MFC Trace Tool, and the tracing mechanism that it interacts with in ATL and MFC. The tracing mechanism The tracing mechanism is used to control the type of information, and the amount of that information, that is dumped to the output window during execution of a program.  There are a number of categories of information, and different levels of that information, that can be displayed. The tracing macr...

Oct 1, 2009
Post comments count 0
Post likes count 0

Ribbon Designer

Visual CPP Team

Hello, my name is Samatha Mannem and I am a QA with the IDE team. The world has become sophisticated and the time has come to make every application geeky as well as fancy. That is where ‘Ribbon’ has evolved. The recent UI designs that people are attracted to are Microsoft Office and Windows 7 ribbons. While Visual Studio 2008 SP1 included the ability to create an application that has a ribbon UI, it was difficult for you to configure it as desired. Detailed Information on Ribbon Designer VS2008 is available at http://msdn.microsoft.com/en-us/library/bb386089.aspx. The Visual Studio product team received a lot of...

Sep 23, 2009
Post comments count 0
Post likes count 0

User Feedback

Visual CPP Team

Hello! My name is Joshua Baxter, and I am a programming writer on the Microsoft team that produces Help content for Visual C++. I am writing this article to explain how Microsoft collects and handles user feedback.   User feedback is an important part of our documentation improvement program. We maintain over 33,000 topics about C++, and we receive an average of 350 comments from Help users every month. Not only does your feedback help us to improve the quality of existing documentation, it also helps us improve the quality of future documentation.   Most of the feedback we receive comes from ratings an...

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

Linker throughput

Visual CPP Team

Hello, my name is Chandler Shen, a developer from the Visual C++ Shanghai team.We have made some changes in the upcoming Visual C++ 2010 release to improve the performance of linker. I would like to first give a brief overview of the linker and how we analyze the bottlenecks of current implementation. Later, I will describe the changes we made and the impact on linker performance.Our Focus We were targeting the linker throughput of large scale projects full build scenario because this scenario matters most in linker throughput scalability. Incremental linking and smaller projects will not benefit from the wo...

Sep 1, 2009
Post comments count 0
Post likes count 0

Compiler Warning C4789

Visual CPP Team

When Visual Studio 2010 ships, it will have improvements to warning C4789; allowing it to catch more cases of buffer overrun. This blog post will cover what C4789 warns about, and how to resolve the warning.What does C4789 mean? When compiling your source file, you may receive the warning: “warning C4789: destination of memory copy is too small.”This message means that the compiler has detected a possible buffer overrun in your code.Example 1Let’s say we have the source file a.cpp that contains the following:1: #include <memory.h>2:3: int p[1];4:5: void bar() {6:   &nbs...

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

Windows SDK V7.0/V7.0A Incompatibility Workaround

Visual CPP Team

Hi,My name is Nada AboElseoud and I am a QA in VC++ Libraries team. I joined MS in February 2009. I would like to talk here about an incompatibility issue with WinSDK v7.0*.If you are a developer who has recently migrated to WinSDK v7.0 (standalone SDK) or v7.0A (inbox with VS 2010), you may encounter these kinds of errors “The procedure entry point K32*** could not be located in the dynamic link library KERNEL32.dll” while running your application.  This implies that you are running your application on an OS other than Windows7 or Windows Server 2008 R2. This blog will explain this blocking issu...