summaryrefslogtreecommitdiff
path: root/Bus/Ivy/IvyStdAfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Bus/Ivy/IvyStdAfx.cpp')
-rw-r--r--Bus/Ivy/IvyStdAfx.cpp11
1 files changed, 10 insertions, 1 deletions
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