C++ Team Blog

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

Compiler Warning C4789

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 ...

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

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...

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...