From: d7o3g4q <d7...@us...> - 2004-09-23 15:39:43
|
Update of /cvsroot/tyshow/TyShow/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3364 Modified Files: Xfer.cpp Log Message: Update Index: Xfer.cpp =================================================================== RCS file: /cvsroot/tyshow/TyShow/util/Xfer.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Xfer.cpp 21 Oct 2003 15:45:26 -0000 1.1 --- Xfer.cpp 23 Sep 2004 15:39:33 -0000 1.2 *************** *** 1,669 **** #include "StdAfx.h" ! #include <windows.h> ! #include <process.h> ! #include <vector> ! #include <assert.h> ! #include "Xfer.h" ! ! volatile LONG CShareMemXfer::cbInitialized = 0; ! ! CShareMemXfer::CShareMemXfer(bool bIsServer, bool& bInitialized) [...1312 lines suppressed...] ! buffer[i] = L'\0'; ! ! wsprintf(buffer + wcslen(buffer), L"(%d) %d:%d:%d.%06.6d -- ", line, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds); ! va_list v; ! va_start(v, lpOutputString); ! DWORD len = wvsprintf(buffer + wcslen(buffer), lpOutputString, v); ! va_end(v); ! OutputDebugString(buffer); ! return xfer->WriteMessage(buffer, (wcslen(buffer)+1) * sizeof(wchar_t)); ! } ! ! void TerminateDebugLog() ! { ! if( xfer ) ! { ! delete xfer; ! xfer = 0; ! } } \ No newline at end of file |