From a023c20d1aea22d77726aee1142322682e12d76d Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:02:20 +0000 Subject: Utilisateur : Fcolin Date : 19/02/01 Heure : 10:37 Archivé dans $/Ivy (vss 4) --- Bus/Ivy/IvyStdAfx.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Bus/Ivy/IvyStdAfx.cpp b/Bus/Ivy/IvyStdAfx.cpp index a7b35f2..8da5a6e 100644 --- a/Bus/Ivy/IvyStdAfx.cpp +++ b/Bus/Ivy/IvyStdAfx.cpp @@ -9,12 +9,21 @@ 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 ); - OutputDebugStringA( buffer ); +#ifdef UNDER_CE + MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, buffer, -1, CEBuffer, 4096 ); + + OutputDebugString( CEBuffer ); +#else + OutputDebugString( buffer ); +#endif } #ifdef WIN32 #ifdef _DEBUG -- cgit v1.1