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
Learn how to paint the background color (paint entire window) of CToolbarby using the "AfxControBar".
Learn how to lock the toolbars (within a rebar or not) like Windows Explorer under Windows 2000/XP.
How to implement a header for your SDI/MDI project.
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.
How to hook up the normal click events for toolbars in VC7, and how to disable buttons programmatically, depending on context.
Latest CodeGuru Developer Columns
With the addition of the C/C++ extension to Visual Studio Code, you might have what is needed in a small, cross-platform editor.
Learn to use LiteDB, is a simple, serverless, fast and lightweight, embedded .NET document database written in .NET C# managed code.
Discover four different ways to read your own application's metadata. Examples are in C# and VB.NET.
Onion Architecture addresses the challenges faced with 3-tier and n-tier architectures, and provides a solution for common problems.