summaryrefslogtreecommitdiff
path: root/Ivy/IvyStdAfx.cpp
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:02:20 +0000
committerfcolin2007-02-01 13:02:20 +0000
commit122b2805e10d4e28521fc7f695685b665d36bfe0 (patch)
tree515e047d237ddcf3184e6310d43abebebfc2cd9d /Ivy/IvyStdAfx.cpp
parent1dae5ed0fca313c60b4c387dbbb54dd5820fcb0f (diff)
downloadivy-cplusplus-122b2805e10d4e28521fc7f695685b665d36bfe0.zip
ivy-cplusplus-122b2805e10d4e28521fc7f695685b665d36bfe0.tar.gz
ivy-cplusplus-122b2805e10d4e28521fc7f695685b665d36bfe0.tar.bz2
ivy-cplusplus-122b2805e10d4e28521fc7f695685b665d36bfe0.tar.xz
Utilisateur : Fcolin Date : 19/02/01 Heure : 10:37 Archivé dans $/Ivy (vss 4)
Diffstat (limited to 'Ivy/IvyStdAfx.cpp')
-rw-r--r--Ivy/IvyStdAfx.cpp11
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