C++ Team Blog

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

Tag Parsing C++

Hello, my name is Thierry Miceli and I am a developer on the Visual C++ Compiler Front End team. Although our team is mostly known for writing and maintaining the part of the C++ compiler that analyzes your source code and builds an internal representation from it, a great deal of our effort in the last few years has been directed into ...

Active Template Library (ATL) Security Updates

Hello, On Tuesday 28 July  we released guidance and updates to assist developers using our Active Template Library (ATL) to prevent creating controls or components with potential security vulnerabilities.  Vulnerabilities in libraries are a rare, but industry wide issue, that requires broad collaboration and action by the ...

Linker warning LNK4221, and some tips to avoid it

Hello, my name is Chandler Shen, a developer from Visual C++ Shanghai team. There is some confusion about warning LNK4221 and whether it is safe to ignore it. I would like to give an explanation on when you may encounter this warning and provide tips for some typical scenarios and workarounds. What does LNK4221 mean?   When building ...

Intellisense and Browsing with C++0x

Hello Everyone, My name is Sunny Gupta and I am a SDET on VC++ IDE & Compiler team. In this blog I will be talking about the IDE support for Cpp0x. What is C++0x??C++0x is the name for the next version of the C++ Programming Language Standard.  For VC 10, the C++ 0x features that have been implemented in the compiler so far are &...

VC++ Directories in Visual Studio 2010

If you recently started using VS2010 and were wondering what happened to Tools > Options > Projects and Solutions > VC++ Directories UI, Brian Tyler has all the details in his new post on the VSProject blog. Check it out here: http://blogs.msdn.com/vsproject/archive/2009/07/07/vc-directories.aspx.We hope you’ll enjoy the new ...

STL Performance

Hello, I am Mohammad Usman, a Software Design Engineer in Test on the Visual C++ Libraries team. I recently joined the team. In VS 2008 SP1, we invested heavily in our Standard Template Library (STL) implementation by adding TR1 extensions such as shared_ptr, including performance optimizations for things like vectors of shared_ptrs.  In...

Channel 9 Video: David LeBlanc (and Ale Contenti): Inside SafeInt

David LeBlanc and Michael Howard literally wrote the book on “Writing Secure Code”. David has also developed the SafeInt  class, a template class that performs “checked” operations on integer types (with a name like SafeInt what else would you expect). In VS2010 we decided to ship the SafeInt class in the box, so ...

Call Hierarchy

Hello everyone, My name is Raman Sharma and I am a PM on the VC++ IDE team.  I want to talk about a new feature called Call Hierarchy in Visual Studio 10.  As the name suggests, it is used for navigating all functions called from within a particular function and all functions that make calls to a particular function.  Many of ...