windows-nt/Source/XPSP1/NT/printscan/wia/test/wiapeek/tools.cpp

33 lines
754 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include "stdafx.h"
#include "Tools.h"
#include "msgwrap.h"
extern CMessageWrapper g_MsgWrapper;
//////////////////////////////////////////////////////////////////////////
//
// Function: Trace()
// Details: This function displays a string to the debugger, (for tracing)
// Remarks: The Trace() function compiles to nothing, when building release.
//
// format - String to display to the debugger
//
//////////////////////////////////////////////////////////////////////////
VOID Trace(LPCTSTR format,...)
{
#ifdef _DEBUG
TCHAR Buffer[1024];
va_list arglist;
va_start(arglist, format);
wvsprintf(Buffer, format, arglist);
va_end(arglist);
OutputDebugString(Buffer);
OutputDebugString(TEXT("\n"));
#endif
}