C++ Team Blog

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

Latest posts

How to read/write the new Visual C++ project properties
Jan 26, 2010
Post comments count 0
Post likes count 0

How to read/write the new Visual C++ project properties

Visual CPP Team
Visual CPP Team

Visual C++ 2010 introduces several new project properties and item metadata that are not accessible via the traditional VC interfaces.  Andrew Arnott discusses the new way to read and write project properties in Visual C++ 2010 using the IVCRulePropertyStorage interface here.

Dialog Editor Improvements in Visual Studio 2010
Jan 19, 2010
Post comments count 0
Post likes count 0

Dialog Editor Improvements in Visual Studio 2010

Visual CPP Team
Visual CPP Team

Hello, my name is Daofa Li, and I am on the Visual C++ QA team. In this post I will be sharing with you the improvements in Dialog Editor for Visual Studio 2010. In Visual Studio 2010, we have improved Dialog Editor in the following features: ·         Add mockup image support to help layout controls in dialogs ·         Add support to use the new MFC controls in design time ·         Enhance the ActiveX control security in Dialog Editor Using mockup image in Dialog Editor A mockup image is an ...

VCBuild vs. C++ MSBuild on the Command Line
Jan 11, 2010
Post comments count 0
Post likes count 0

VCBuild vs. C++ MSBuild on the Command Line

Visual CPP Team
Visual CPP Team

In Visual Studio 2010, the command line tool vcbuild.exe will be replaced by msbuild.exe. The executable change does mean switches will change, too.  To help make the migration easier, I have created this table as a quick guide to the new switches and highlight some differences between the tools.  The table below isn’t a complete table of all the switches provided in both tools.Migrating to MSBuild requires a new project type with a different extension (vcxproj).  Visual Studio comes with two tools for converting existing projects and solutions.  When dealing with a single project, the &...

DIA based Stack Walking
Jan 5, 2010
Post comments count 1
Post likes count 0

DIA based Stack Walking

Visual CPP Team
Visual CPP Team

Hello, I am Manish Vasani, an SDET on the VC++ compiler backend team. In this series of posts, I will talk about call stacks and how to use the DIA SDK for implementing a stack walking client that builds a call stack. If you are interested in knowing how debuggers build the call stack or want to write an application that dumps the call stack for an executing process, you may want to continue reading further. In this post I’ll start with a brief introduction on stack walking, discuss the DIA APIs for implementing it, and then walkthrough a code sample for a DIA based stack walker. Those who are familiar with...

C++ Native Multi-Targeting
Dec 8, 2009
Post comments count 0
Post likes count 0

C++ Native Multi-Targeting

Visual CPP Team
Visual CPP Team

Instructions for native multitargeting in VS2017 can be found here: https://blogs.msdn.microsoft.com/vcblog/2016/02/24/stuck-on-an-older-toolset-version-move-to-visual-studio-2015-without-upgrading-your-toolset/ Hello, my name is Li Shao. I am a Software Design Engineer in Test on the C++ team. For the past two years, I have been part of the team working on migrating the C++ build system from VCBuild to MSBuild as well as the new project system which is also built on top of MSBuild. You can see one of my earlier blogs about the task work that we have done. In this blog, I am going to give an overview of...

/GL and PGO
Dec 1, 2009
Post comments count 0
Post likes count 0

/GL and PGO

Visual CPP Team
Visual CPP Team

Hi, I’m Lin Xu, a Program Manager working on the C++ compiler. Recently, we collated performance numbers from our testing passes over this release cycle. We track many different benchmarks closely for all of the architectures and switch options (/O1, /O2, /GL, /PGO). We also track these across multiple CPU models. (Yes, this is quite a big matrix. Look for an upcoming blog post from the QA team to learn more.) We’re pretty excited about the improvements we made for this release in code quality. (Read Ten’s recent post about it here) As I looked at the numbers, one thing jumped out at me: To really take advantage ...

TechEd Europe Demo Session – Face-Lifting MFC Applications on Windows 7
Nov 23, 2009
Post comments count 0
Post likes count 0

TechEd Europe Demo Session – Face-Lifting MFC Applications on Windows 7

Visual CPP Team
Visual CPP Team

Hello, My name is Damien Watkins, and I am a Program Manager on the Visual C++ team. Today, I thought I would post the “overview script” for my TechEd Europe session – so those who could not attend can try it out for themselves at home. My talk was about the new MFC features we have added in Visual Studio 2010. Just before we get started, I would like to point out that Pat Brenner has been doing some Channel 9 videos on the new MFC functionality too, you can find the first three videos here (and keep your eyes open for more in the future): 1.       Pat Brenner: Visual Studio 2010 - M...

Improvements to Find all references in Visual Studio 2010
Nov 17, 2009
Post comments count 0
Post likes count 0

Improvements to Find all references in Visual Studio 2010

Visual CPP Team
Visual CPP Team

Hello, my name is Raman Sharma, and I am a Program Manager on the VC++ team.  Through this blog post, I wish to highlight some changes we have made to an important feature in the C++ IDE, called “Find all References”.  As most of you would know, this feature is used to search for references to any element of your code (classes, class members, functions etc.), inside the entire solution.  In Visual Studio 2010, we have made some changes to this feature to provide more flexibility. Let’s look at these changes through an example.  Let’s say you have the following piece of code: Figure 1: Sample ...

Visual C++ Precompiled Header Errors on Windows 7
Nov 12, 2009
Post comments count 0
Post likes count 0

Visual C++ Precompiled Header Errors on Windows 7

Visual CPP Team
Visual CPP Team

Several customers have encountered the following error while using the Visual C++ compiler on Windows 7: fatal error C1859: 'stdafx.pch' unexpected precompiled header error, simply rerunning the compiler might fix this problem This error manifests under the following conditions:·         The Visual C++ compiler is invoked on Windows 7.·         Precompiled header (PCH) files are enabled.·         /analyze is enabled (this is not a necessary condition, but it increa...