TraceWin is a Windows applet that displays C++ (TRACE, ATLTRACE, _RPTX) and .NET (Trace.Write, Trace.WriteLine) diagnostics in a separate window. You can use it to help debug your app without running it under the debugger. You can also save the output to a file for later use.
Copy the executable TraceWin.exe to a folder in your PATH.
Copy TraceWin.h to a folder in your INCLUDE path
Include TraceWin.h in your main program file (eg. MyApp.cpp).
IMPORTANT: Only one module per project should include TraceWin.h!
Compile with _DEBUG and run--that's all!
Add a reference to TraceWinListener.dll in your .NET project.
Add the following lines in your main module file (eg. Form1.cs):
using TraceWin; Debug.Listeners.Add(new TraceWinListener());
Run the program TraceWin.exe before starting your app.
If all you want to do is use TraceWin, use the .exe and .dll provided. But if you want to modify either of these for whatever reason, or just see how they work, the source code is in ./src/cpp and ./src/cs. You can open the solution files in Visual Studio .NET, or just open a command prompt, cd to the appropriate source folder and type:
nmakeMake sure your PATH is set up to find Visual Studio .NET and NMAKE.Happy Programming!
Paul DiLascia
www.dilascia.com