More MSVC Tricks|
Visual C++ 6, have many "hidden" but usefull features, user defined syntax coloring via usertype.dat have been already
discussed in TOTD, another one no less important is file autoexp.dat located in Visual Studio\Common\MsDev98\Bin.
Conents of this file guide msvc debugger to display user specified types.
Its very annoying when using variable watch while debugging to expand user classes, especially small, often used ones, (like string or vector), and sometimes, such classes can contain many static members, and when expended can waste half of watch screen space.
This is where autoexp.dat really comes handy, full format description of autoexp.dat is written at the begining of the file itself.
i`ll just give simple example:
suppose you have a string class.
to force MSVC to show contents of m_str member when displaing instance of String class (instead of just pointer to String)
we add to autoexp.dat next line:
restart MSVC and run debugger, now when you add to watch instance of String class, it will nicely show string itself in same line.
same, can be done for vector,quaternion and other primitive classes.
Enjoy your debugging :)
The zip file viewer built into the Developer Toolbox made use
of the zlib library, as well as the zlibdll source additions.