How to use TraceView:

Copy the TraceView.exe to your HPC. Also copy mfcwce.dll to your Windows folder on the HPC.

Include DBTrace.lib in your projects which you want to debug. 
Trace statements can be thrown using the normal format specifiers similar to wsprintf().
You can throw trace statements as follows :

DBTRACE(L"The trace statement.");
DBTRACE(L"The trace statement number %d", number );
                            
When you run your application on the HPC you can view the trace messages 
from your application in the TraceView application. 

Currently you have to use "\r\n" sequence for a new line. 


New features for the TraceView app.

1 > Added a "Save to File" option, which allows the user to save the 
debug messages in a file.

New features for the library : 
1 > Two new macros DBTRACE0 and DBTRACE1. The first macro prints the 
filename and line number alongwith the debug message. The second macro 
prints the filename, line number and thread ID alongwith the debug 
message.
eg : DBTRACE0( "Trace here." ) prints
<< filename, linenum >> Trace here.

DBTRACE1( "Trace here" ) prints
<< filename, linenum [thread ID] >> Trace here.

2 > Two macros for error conditions, ERRTRACE0 and ERRTRACE1. They are 
the same as DBTRACE0 and DBTRACE1, only they are printed in a different 
manner so that they stand out.
eg: ERRTRACE0( "Error here" ) prints
*[[ filename, linenum ]] Error here

ERRTRACE1( "Error here" ) prints
*[[ filename, linenum [thread ID] ]] Error here
