I created three macro to output string in debug or release mode:
DT,DW and DE.
DT is used for output general string.
DW is used for warnning string.
and DE for error.
They are displayed with different colors.
usage is the same as TRACE.
First of all,add #include "dt.h" to stdafx.h
dt.h is include in sourcecode.
DW("warnning:%s","StarCraft is my favorite game");
DW("err,something unhappy occurs");
File info and line is add automatically.
Use DT.exe to receive message.
you can find DT.exe in sourcecode directory.
You can write your own DT receiver app,but if somebody want the sourcecode of
DT.exe,I will attach it to here.