/*++ Copyright (c) 2003 Microsoft Corporation. All rights reserved. --*/ #include "stdafx.h" #include #include "trace.h" #ifdef _DEBUG VOID DebugPrint (TCHAR *Format, ...) { va_list ArgList; const int MAX_DEBUG_STRING_SIZE = 1024; TCHAR toPrint[MAX_DEBUG_STRING_SIZE]; toPrint[MAX_DEBUG_STRING_SIZE-1] = _T('\0'); va_start(ArgList, Format); int i = _vsntprintf(toPrint, MAX_DEBUG_STRING_SIZE-1, Format , ArgList); ATLASSERT(i > 0); va_end(ArgList); OutputDebugString(toPrint); } #endif