diff options
author | fcolin | 2007-02-01 13:29:31 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:29:31 +0000 |
commit | afe2e7dfc1388cad991e8d38dda7d648c137aa52 (patch) | |
tree | 92bf63d2b2b34a805927aa294c7c51912638f66a /Ivy/IvyStdAfx.cpp | |
parent | 0be65f8a110ee9bf5da9c93e0bd5b5b62b3bad0c (diff) | |
parent | 04c263c314499e38d64af9d4a1aa5e2b8d9d5ead (diff) | |
download | ivy-cplusplus-afe2e7dfc1388cad991e8d38dda7d648c137aa52.zip ivy-cplusplus-afe2e7dfc1388cad991e8d38dda7d648c137aa52.tar.gz ivy-cplusplus-afe2e7dfc1388cad991e8d38dda7d648c137aa52.tar.bz2 ivy-cplusplus-afe2e7dfc1388cad991e8d38dda7d648c137aa52.tar.xz |
modif struct svnwindows@3001
Diffstat (limited to 'Ivy/IvyStdAfx.cpp')
-rw-r--r-- | Ivy/IvyStdAfx.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Ivy/IvyStdAfx.cpp b/Ivy/IvyStdAfx.cpp new file mode 100644 index 0000000..2fe8012 --- /dev/null +++ b/Ivy/IvyStdAfx.cpp @@ -0,0 +1,27 @@ +// stdafx.cpp : source file that includes just the standard includes
+// libIvy.pch will be the pre-compiled header
+// stdafx.obj will contain the pre-compiled type information
+
+#include "IvyStdAfx.h"
+
+#include <windows.h>
+
+void DebugTrace ( const char *fmt , ... )
+{
+ char buffer[4096];
+#ifdef UNDER_CE
+ TCHAR CEBuffer[4096];
+#endif
+ va_list args;
+
+ va_start( args, fmt );
+ _vsnprintf_s( buffer, sizeof(buffer), sizeof(buffer)-1, fmt, args );
+ va_end( args );
+#ifdef UNDER_CE
+ MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, buffer, -1, CEBuffer, 4096 );
+
+ OutputDebugString( CEBuffer );
+#else
+ OutputDebugString( buffer );
+#endif
+}
|