C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
C++ Renaissance: First Symptoms of Contagion in Traditionally Non-Native Teams
You may already know Pete Brown but if you don’t, I’ll briefly introduce him here: he’s, like me, a Community Program Manager with Microsoft but while I’m focused on C/C++ languages and the Visual C++ tool, he’s devoted to client-side development technologies (mainly WPF and Silverlight, with some Windows Phone 7 and XNA, a bit less of HTML and JavaScript –Rey Bango covers these two web techs- and a bit of C++ as well, although this last hasn’t happened for months, if not years (even before last December, when there was no C++ Community PM at all). In his own words: My C++ is slightly more rusty than an old t...
Can Touch This: Developer Guidance for Touch-Enabled Applications
Those who, beside this blog, read Windows Developer resources, may have noticed that at the beginning of this month that sibling team released a “Windows 7 Touch Application Development Guidance”. This guidance is purposed to make you learn about: This is ideal for software developers who want to take full advantage of Windows on touch-enabled PCs. And if you really enjoy touch enabled application development, we recommend you to read a series of articles that our colleague Gus Class is writing: … everything indicates that Gus will keep sharing his knowledge to help us m...
The Visual C++ Weekly Vol. 1 Issue 8 (Feb 19, 2011)
Read in this issue:
MFC Application Instance Control
An interesting question, asked days ago in one of our C++ forums, was the following: A possible approach, based in mutex (mutual exclusion) objects, was posted a few hours later. In the proposed schema you declare a mutex object inside the MFC application class (i.e. the class header): When you define the MFC application InitInstance() method, you attempt to create the mutex -whose creation will succeed the first time, fail afterward.- About the else, the solution proponent (Bordon) said the following The "SendMessage" is only needed if you want that the running application...
The Visual C++ Weekly Vol. 1 Issue 7 (Feb 12, 2011)
Read in this issue:
shared_ptr – Advanced STL, Part 1
Part 1 of my video lecture series exploring the Standard Template Library's implementation is now available. In this part, I explain how some of shared_ptr's magic works, including type erasure and make_shared<T>()'s optimizations that save both space and time. This advanced series assumes that you're familiar with C++ and the STL's interface, but not the STL's implementation. If you haven't used the STL extensively yet, I recommend watching my introductory series. For reference, here are all of the links: [STL Introduction]Part 1 (sequence containers)Part 2 (associative containe...
Go Ask printf() To Behave Predictably
This is one of those problems whose solution is very evident… or bitterly hard to guess depending on how much you were influenced by what you were told about it.I’ll paste here the case You will rapidly solve it… or not! It will actually depend on what it impressed you the most about the symptoms.
C++ Renaissance: a Channel 9 Interview
If you don’t know Charles Torre, I’ll introduce him here: Charles is a BIG fan of C++ and he works for Channel 9 (in that order). Charles is the one to blame about the acclaimed series that Stephan put together about STL (beside Stephan himself). And Charles is encouraged to do more and more and more. So to put a beginning in an expectable increase in C++ material to be seen in Channel 9, he interviewed two Visual C++ top executives -Technical Fellow Mohsen Agsen and Director PM Craig Symonds- about the current perceived trends regarding C++ in the developer industry, that Mohsen synthesized in o...
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 offers an MFC GUI control class which implements display of OpenStreetMap tiles. Cameron and Tracey Hughes discuss on threads and contention. C++ MVP Giovanni Dicanio explains a technique to convert STL strings of different Unicode character width. In our entrepreneur column, w...