diff options
Diffstat (limited to 'Ivy')
-rw-r--r-- | Ivy/IvyStdAfx.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Ivy/IvyStdAfx.cpp b/Ivy/IvyStdAfx.cpp index a7b35f2..8da5a6e 100644 --- a/Ivy/IvyStdAfx.cpp +++ b/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
|