A StackTrace class
I always see a regular software or engine, and always give many prompt information when the program is abnormal: such as the CPP file, the line number, etc.
It is always unclear that this is achieved. Recently, a introduction to MSDN made a clear principle and wrote an exception class.
All Win32 programs will be used in all Win32 programs.
Msdn Original: http://msdn.microsoft.com/msdnmag/issues/02/03/hood/default.aspx
Class and Sample: free3.e-168.cn/shenpin/exception.rar