CUJ Logo

June 1997
Volume 15 Number 6

DEBUGGING/TESTING

Tracking Down Resource Leaks with HandleTracker

Mike Monagle
When you're losing resources along the way, it's wise to invest in a few bread crumbs.

Being Assertive in C/C++

Earl Fong
Assertions can really raise the reliability of your code, if you use them properly.

Stack Trace Assertions Using COFF

Carlo Pescio
Common object format files can have lots of useful debugging information, if you know how to use it at the right place and time.

A New Trace Class

Puneesh Chaudhry
Notation isn't everything, but a judicious use of operator overloading can make your C++ trace statements both easier to read and safer to compile.

FEATURES

C/C++ and Java Library Equivalents

Laura Michaels
Much of the power of any programming language lies in its accompanying library. Java is no exception and, fortunately, will be familiar turf to C and C++ programmers.

A Reusable Apply Function via the Command Pattern

Sean Batten
Even an object-oriented program needs an occasional function pointer. The trick is to encapsulate the pointer properly.

Macintosh-to-Windows Resource Conversion

Jeff Heaton
Converting data formats between systems is hard enough, particularly between a Mac and a PC. This tool helps you with the other half of the job.

A Windows Shell for Legacy MS-DOS Applications

Dmitri Klementiev
Sometimes the best way to use an old DOS-based program in a Windows environment is to do as little as possible.

COLUMNS

Standard C/C++: Container Adapters

P. J. Plauger
The long journey through the Standard Template Library finally ends, with a description of several handy container adapters.

The Learning C/C++urve: Sargasso Sea

Bobby Schmidt
There's more than one way to write a constructor or encapsulate a string, and Bobbys shows us quite a few of both.

C++ Theory and Practice: The Syntax of new- and delete-expressions, Part 1

Dan Saks
Dan tells us what's new in C++, and how stray parentheses can do surprising things to a new expression.

Questions & Answers

Pete Becker
Pete Becker is on vacation this month. He will be back in next month's issue with more C/C++ Questions and Answers.

DEPARTMENTS

Editor's Forum

New Products

We Have Mail