DevX: Latest C++ Content
Latest DevX Content

DevX

Overriding Virtual Functions? Use C++0x Attributes to Avoid Bugs.
Overriding a virtual member function in C++ can go wrong in many ways, most of which the compiler won't detect. Learn how three new C++0x attributes can help you avoid the bugs associated with overriding virtual functions.

Use Enumeration Instead of SAFEARRAY to Get an Array's Elements
C++'s SAFEARRAY is difficult to use. A better option is to enumerate an array's elements by repeatedly calling your own custom enumeration function and incrementing the element index.

Portable Functions to Check for NaN and Infinity
These versions of isNaN() and isInf are portable across C++ compilers.

Convert a Delimited String to a Generic List
Split the string at the delimiter and then add each item to a new string list.

Call PowerShell Cmdlets from C#
Take advantage of pre-written cmdlet functionality in your own applications.

A Quick Way to Generate Properties in Visual Studio C# Projects
Don't write property setters and getters by hand--generate them!

Avoiding the Perils of C++0x Data Races
Find out what dangers race conditions in general and C++0x data races in particular pose to your concurrent code, as well as the strategies for avoiding them.

Quick C# Project Documentation in Visual Studio
Here's a quick way to document your .NET projects.

COM Interop Gets Much Better in C# 4.0
Enhanced COM interop through C# 4.0's dynamic type system, support for named and optional parameters, and for variance makes working with Microsoft Office and other Primary Interop Assemblies much easier.

Using SetForegroundWindow on Windows Owned by Other Processes
Find out how to specify which window should appear in the foreground—even if it's running on a different thread.