Using shared_ptr instead of raw pointers helps you avoid the common pitfalls associated with raw pointers but in some cases, its performance isn't satisfactory. Unique_ptr is a new C++0x smart pointer that is compact, fast and fully compatible with the standard library. Find out how to use unique_ptr to make your code safer without sacrificing performance.
Latest Miscellaneous Articles
Tip: Painting the CToolbar's Parent Window (AfxControlBar)
Learn how to paint the background color (paint entire window) of CToolbarby using the "AfxControBar".
Locking Rebars and Toolbars
Learn how to lock the toolbars (within a rebar or not) like Windows Explorer under Windows 2000/XP.
Building and Using a Toolbar Header
How to implement a header for your SDI/MDI project.
Putting a Docking Toolbar in a Dialog App
Getting a docking toolbar in a dialog is not easy. I do a small trick -- I make a dialog behave like a toolbar, thus making a lot of GUI gimmicks easy to incorporate.
Toolbar Button Events and Disabling in Visual C++ 7
How to hook up the normal click events for toolbars in VC7, and how to disable buttons programmatically, depending on context.
Latest Developer Videos
More...Latest CodeGuru Developer Columns
MFC Integration with the Windows Transactional File System (TxF)
The Transactional File System (TxF), which allows access to an NTFS file system to be conducted in a transacted manner through extensions to the Windows SDK API. MFC 10, has been extended to support TxF and related technologies. This support allows existing MFC applications to be easily extended to support kernel transactions.

Command Line Junkie
While porting a C# applications to something other than Windows used to be hard, today command line tools can make it super easy!

Handling Exceptions in Visual Basic
Hannes du Preez shows you how to handle exceptions properly in Visual Basic.

Working with State Machines in the .NET Framework
Arun Karthick introduces you to the state machine model and shows you how to create a simple working state machine sample using the .NET framework in the C# language.