void trace(char* szFormat, ...)
{
#ifdef _DEBUG
char buff[1024] = {0};
va_list args;
va_start(args,szFormat);
_vsnprintf(buff, 1023, szFormat,args);
OutputDebugString(buff);
va_end( args);
#endif
}
转载于:https://www.cnblogs.com/ahuo/archive/2008/03/20/1114258.html