// stdafx.cpp : source file that includes just the standard includes // libIvy.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" #include void DebugTrace ( const char *fmt , ... ) { char buffer[4096]; #ifdef UNDER_CE TCHAR CEBuffer[4096]; #endif va_list args; va_start( args, fmt ); vsprintf( buffer, fmt, args ); va_end( args ); #ifdef UNDER_CE MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, buffer, -1, CEBuffer, 4096 ); OutputDebugString( CEBuffer ); #else OutputDebugString( buffer ); #endif } #ifdef WIN32 #ifdef _DEBUG #include void* __cdecl operator new(size_t nSize, const char * lpszFileName, int nLine) { return ::operator new(nSize, _NORMAL_BLOCK, lpszFileName, nLine); } void __cdecl operator delete(void *p, const char * lpszFileName, int nLine) { ::operator delete(p, _NORMAL_BLOCK, lpszFileName, nLine); } #endif #endif