C++ Team Blog

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

The Visual C++ Weekly Vol. 1 Issue 6 (Feb 5, 2011)

For this week roundup, we start with a game that C++ MVP Marius Bancila code, inspired on his favorite phone game. You can download the code and study or just play it right away. We tell you how to validate, in Visual Studio 2010, C/C++ code against architecture layer diagrams in order to avoid cross-layer dependencies. C++ MVP PJ Naughter ...

Concurrent Containers

A recurrent question (well, one of the many) is about STL containers and whether they are thread safe.Taking Stephan’s words here, the reality is that they aren’t, not as a bug but as a feature: having every member function of every STL container acquiring an internal lock would annihilate performance. As a general purpose, highly ...

PDC 2010: Lambdas, Lambdas Everywhere

(image) Why care about C++0x lambda functions? Syntactically, they are nothing but sugar for function objects. However, they are an essential and enabling sugar that will change the way we will write C++ code more often than most people realize. This talk from last PDC covers what lambda functions are and how to use them effectively, ...

The Visual C++ Weekly Vol. 1 Issue 5 (Jan 29, 2011)

This week comes with an article to help you set your application for parallelization; C++ MVP Dan Rollins researches on various ways to implement properties in C++; Issam Iqbal, C++ MVP, gives another twist to the TO CLI or NOT TO CLI debate when creating unit tests for our unmanaged code (voting for “NOT TO CLI”). There are also a...

Heritage Shared

A few days ago, we posted two C++ quizzes based on a question posted in a forum. Let’s review the first question   Quiz 1   The guy was frustrated because he expected two things...

Parallel Programming with Microsoft Visual C++ (Book in Progress)

(image) The patterns & practices group is writing a new guide that will introduce Visual C++ programmers to patterns for including parallelism in their applications. Examples of these patterns are parallel loops, parallel tasks and data aggregation with map-reduce. Each pattern has its own chapter. Each chapter includes a description of ...

Sharing the Heritage (Quiz Game)

I was reading recent discussion threads and found something interesting that someone introduced as a question, but instead of start developing the whole story from here, I’ll just challenge you with two different quiz games. Quiz 1 Without using Visual Studio or your building tool of preference, ...

The Visual C++ Weekly Vol. 1 Issue 4 (Jan 22, 2010)

Paperli.PaperWidget.Show({ pid: 'visualc/news', width: 200, background: '#000666' }) Greetings!! The 4th issue of The Visual C++ Weekly is out there. This issue starts with an article due to C++ MVP Marc Gregoire on an extension that Visual Studio 2010 SP1 Beta brings to Microsoft Foundation Classes (MFC) to allow animations. ...

Feedback Wanted: Participate in User Experience Research on the Visual Studio Help Experience

Microsoft is working to provide developers the next experience with local documentation. Last December, the Library team released the SP1 beta version of its Microsoft Help Viewer for Visual Studio. Additionally, there are a number of changes and improvement being made on the local Help Viewer, as well as MSDN and other documentation-...