This article presents a class that attaches a C++ std::iostream object to a Win32 console window. The window can be enabled or disabled at will, and provides an excellent vehicle for dumping debug output. Now that the C++ iostreams specification is standardized, this class should work properly with all future versions of Win32 compilers.

continue reading.....