C++ Team Blog

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

Latest posts

May 21, 2009
Post comments count 0
Post likes count 0

/DYNAMICBASE and /NXCOMPAT

Visual CPP Team

Hello, my name is Xiang Fan and I am a developer on the C++ Shanghai team. Today I’d like to talk about two linker options related to security: /DYNAMICBASE and /NXCOMPAT.   These two options are introduced in VS2005, and target to improve the overall security of native applications.   You can set these two options explicitly in VS IDE:     These two options have three available values in the IDE: On, Off and Default.   They are set to “On” if you create native C++ application using VS2008 wizard. When VS2008 upgrades projects created by older version of VC which doesn’t support these o...

May 20, 2009
Post comments count 0
Post likes count 0

Using the Windows 7 RC SDK in Visual C++ 2010 Beta 1

Visual CPP Team

Though the Windows 7 RC SDK was released about 2 weeks before Visual Studio 2010 Beta 1, it was not possible to incorporate that release into VS 2010 Beta 1. As a result, the Windows SDK components that ship as part of Visual Studio 2010 Beta 1 are the Windows 7 Beta SDK versions. This post will describe how you can use the Native Multitargeting feature in Visual Studio 2010 to compile and link your applications against the Windows SDK supporting Windows 7 RC. Step 1: Download and install the RC SDK from http://www.microsoft.com/downloads/details.aspx?familyid=F75F2CA8-C1E4-4801-9281-2F5F28F12DBD&displaylan...

May 11, 2009
Post comments count 0
Post likes count 0

VC++ IDE / Design Time Stress Testing

Visual CPP Team

Hi, my name is Jianhua Li, and I am a VC++ IDE QA. Today I am going to talk about VC++ IDE / Design Time stress testing. What is stress testing? Design Time Stress (DTS) is part of a broader set of reliability quality criteria focused on measuring an application's robustness, availability and reliability under stressful conditions.  It's scoped to Design Time Components which are components exercised by the user when working in the IDE, for example, browsing or intellisense. Why do we need to “stress” our product?Basically, we want to make sure our product, VC++ IDE, works reasonably under c...

Apr 22, 2009
Post comments count 0
Post likes count 0

decltype: C++0x Features in VC10, Part 3

Visual CPP Team

Part 1 of this series covered lambdas, auto, and static_assert. Part 2 of this series covered rvalue references, which enable move semantics and perfect forwarding. Today, I'm going to talk about decltype, which allows perfect forwarding functions to have arbitrary return types.  It's of interest to people who are writing highly generic code.  the return type problem C++98/03 has an interesting blind spot - given an expression like x * y, where x and y have arbitrary types, there's no way to say "the type of x * y".  If x is of type Watts and y is of type Seconds, then x * y mig...

Apr 9, 2009
Post comments count 0
Post likes count 0

Tech-Ed North America 2009

Visual CPP Team

Most of you must be aware of the upcoming Microsoft® Tech·Ed North America 2009 in Los Angeles.  This event provides hands-on learning, deep product exploration and opportunities to connect with industry and Microsoft experts one-to-one.  Anyone attending and interested in C++ development will find the following Tech.Ed sessions useful:  In addition, Raman Sharma from the Visual C++ team will be present at the Native Languages booth on all days of the event.  We would be delighted to meet you during the event at one of the above sessions or in the booth. Thank youVisual C+...

Apr 1, 2009
Post comments count 0
Post likes count 0

VC MSBuild Extensibility Example

Visual CPP Team

Hello, my name is Felix Huang and I am a developer on the Visual C++ team.  Over the last year, I worked on making the build system in Visual Studio 2010 more flexible with MSBuild system as the foundation.  For those who felt the need to use batch scripts to power your builds, I hope that this new system would provide you with that much flexibility while maintaining a similar UI feeling as the previous version of Visual Studio.  Previous article written by Marian Luparu touches more on the benefits of MSBuild.  In this post, I will provide an example augmenting the build system and property ...

Mar 31, 2009
Post comments count 0
Post likes count 0

Interested in using web services in your native C/C++ code?

Visual CPP Team

If you are planning to use web services in your native C/C++, here is how you can learn how you can do that. 1)      On 04/01/2009, Nikola Dudar will be hosting a web cast on Windows Web Services API as part of   Microsoft Virtual TechDays for Developers. Nikola is going to introduce Windows Web Services API and demonstrate how using WWSAPI you can build web services and clients to them. You can register for the session here. 2)      You can watch video recordings from talks on building web services in native C/C++ code: a.   &nbsp...

Mar 28, 2009
Post comments count 0
Post likes count 0

Some VS2005 and VS2008 Wizards Pop Up Script Error.

Visual CPP Team

Visual C++ team has discovered that after installing the current release of Internet Explorer (Internet Explorer 8), some VC++ wizards do not function correctly.  The products affected are Visual Studio 2005 and Visual Studio 2008.  Following are the affected wizards:-          Add Function-          Add Variable-          Smart Device – New Project Creation-          Smart Device – Add Class Invoking any of t...

Mar 25, 2009
Post comments count 0
Post likes count 0

Repackaged VC9 SP1 Hotfix For The vector<function<FT>> Crash

Visual CPP Team

Back in December, I blogged about a hotfix for the vector<function<FT>> crash in VC9 SP1.  An observant reader, User, commented that the hotfix had been packaged incorrectly.  We've fixed this problem, and you can now download the repackaged hotfix. Stephan T. LavavejVisual C++ Libraries Developer