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

Jumping Into C++: Calculating Unknowns
Last time, I wrote a C++ program to count words in text files. This time, write some code to calculate the motion of an object as an excuse to create a class, use function pointers and mess with some new containers. Thanks to my colleagues Ale Contenti and Andy Rich for providing the inspiration and original Simple Physics Calculator application, James McNellis for reviewing drafts and providing code snippets, and Stephan Lavavej for additional feedback. Requirements This time, I need to develop a class that provides information about the motion of an object. Requirements include: For exam...

In the Community: Meet Tom Serface
Welcome to In the Community. This week, meet Tom Serface, C++ MVP and longtime Visual C++ user. I have been using VC++ with MFC since it first came out circa 1993 and I saw it demonstrated at a local Software Development show. I've been working for Rimage Corporation for just over 25 years developing software to make our optical disc publishing hardware work. My software is mostly written in C++, but we also use C# and C#/ASP.NET. I have a snippet blog at www.camaswood.com/tech where I list tricks that I think are useful. When I'm not working I enjoy hanging out with my family, playing guitar, traveling, and...

Visual Studio 3D Starter Kit – Now for Windows Phone 8
Last year, I decided I finally wanted to take the plunge into DirectX development. I'd done a little bit of OpenGL programming several years ago, but no graphics development since then. I bought a few DirectX books, worked through several online tutorials, and tried out the Visual Studio project templates and graphics asset tools, but wasn't sure how to put all this information together to write a simple 3D application. Enter the Visual Studio 3D Starter Kit (or Starter Kit, as I'll refer to it in the rest of this post.) The Starter Kit takes the Visual Studio graphics tools and the templates to the next level w...

In the Community: Meet PJ Naughter
In the Community spotlights members of the C++ / developer community. This week, meet PJ Naughter, a C++ MVP and prolific C++ developer. Take it away, PJ… PJ has been a C++ MVP since 2007. In his spare time, he runs a personal web site at http://www.naughter.com where he publishes open source software and source code of use to Windows C++ developers. There is roughly 250,000 lines of Open Source C++ code available to download. Areas covered include GUI controls, Astronomy, Calendars, Hardware integration, multi-threading, network protocols and databases.C++ in 140 characters or less? The Ideal computer lan...

do-while, casts, ODR, variadic templates – Core C++, Part 8

Part 8 of my third video lecture series (covering the C++ Core Language) is now available. In this part, I covered several topics: why I avoid do-while loops, how C and C++ casts behave and why they're dangerous, what the One Definition Rule is and how to follow it, and how my toy program to sort arrays with variadic templates works.For reference, here are all of the links to my video lectures, plus my GoingNative 2012 presentation: [STL Introduction]Part 1 (sequence containers)Part 2 (associative containers)Part 3 (smart pointers)Part 4 (Nurikabe solver) - see Wikipedia's article and my updated source...

In the Community: Meet Nish Sivakumar
In the Community is a regular series spotlighting members of the C++ / developer community. This week, meet Nish, a C++ MVP, author and long-time developer. Nish has been writing code since 1990 when he first got his hands on an 8088 with 640 KB RAM. He has been a Microsoft Visual C++ MVP since October 2002, and maintains an MVP tips and tricks web site - www.voidnish.com where you can find a consolidated list of his articles, writings, and ideas on Visual C++, MFC, .NET, C++/CLI, WPF, Silverlight, and Windows RT.He authored a romantic comedy - "Summer Love and Some more Cricket" when he was still in college. Lat...

Friday Miscellany #5
Welcome to another Friday Miscellany, a collection of interesting links from across the internet curated from social media, conversations and curiosity. If you have something to share, send it to me (ebattali@microsoft.com) for potential inclusion in a future miscellany. Thanks!

In The Community: Meet Marius Bancila
In the Community is a regular series spotlighting members of the C++ / developer community. This week, the spotlight is on Marius Bancila, a developer and C++ MVP. Marius has been developing desktop applications for 10 years, using different technologies including C++, C# and Java. C++ has always been his preferred language of choice. He has been awarded Microsoft MVP for VC++ since 2006 for his involvement in online communities with focus on VC++ and native technologies. He is the co-founder of codexpert.ro, a site for the Romanian C++ community. He currently works for Visma, a Norwegian-based company, and devel...

After the Jump
This is a follow up to Jumping Into C++, a first-hand account of my experiences writing my first modern C++ application. It was a simple exercise that turned out to be not so simple and much more educational than I imagined thanks to the community.Thank you.And now, in no particular order, a few thoughts.About not using regular expressions. I avoided regular expressions early in the project because I was leery of additional complexity they might introduce. Not complexity from the regular expression language itself (w+ etc.) but complexity introduced by the C++ plumbing required to use the regular expression. I di...