summaryrefslogtreecommitdiff
path: root/Bus/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:02:20 +0000
committerfcolin2007-02-01 13:02:20 +0000
commita023c20d1aea22d77726aee1142322682e12d76d (patch)
tree7867b9795972a0a9b4d7ab394e6d893d9c6e61aa /Bus/Ivy
parent0536628097ae079c89a9d58f02437ada072ea3aa (diff)
downloadivy-cplusplus-a023c20d1aea22d77726aee1142322682e12d76d.zip
ivy-cplusplus-a023c20d1aea22d77726aee1142322682e12d76d.tar.gz
ivy-cplusplus-a023c20d1aea22d77726aee1142322682e12d76d.tar.bz2
ivy-cplusplus-a023c20d1aea22d77726aee1142322682e12d76d.tar.xz
Utilisateur : Fcolin Date : 19/02/01 Heure : 10:37 Archivé dans $/Ivy (vss 4)
Diffstat (limited to 'Bus/Ivy')
-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