SDC C-Project CF Review 프로그램
LYW
2021-09-14 ffe71aadfdcb4a9ea2ac4d8d320983d42ef3cad5
ReviewSystem/ReviewSystem/DisplayMessage.cpp
@@ -78,13 +78,20 @@
{
   va_list list;
   TCHAR strText[2000] = {0};
   try
   {
      va_start(list, lpstrFormat);
      _vstprintf_s(strText, lpstrFormat, list);
      va_end(list);
   va_start(list, lpstrFormat);
   _vstprintf_s(strText, lpstrFormat, list);
   va_end(list);
      CString* pstrLog = new CString(strText);
      PostThreadMessage(m_ThreadId, WM_DIPLAY_LOG, reinterpret_cast<WPARAM>(pstrLog), 0);
   }
   catch (...)
   {
      return;
   }
   CString* pstrLog = new CString(strText);
   PostThreadMessage(m_ThreadId, WM_DIPLAY_LOG, reinterpret_cast<WPARAM>(pstrLog), 0);
//    WriteToFile(strText);
// 
@@ -123,7 +130,8 @@
      // 유니코드 파일의 시작은 BOM(0xFEFF) 이어야 한다.
      TCHAR strCommand = 0xFEFF;
      CString strLog = _T("");
      strTimeStamp.Format(_T("[%02d:%02d:%02d]"), time.GetHour(), time.GetMinute(), time.GetSecond());
      //strTimeStamp.Format(_T("[%02d:%02d:%02d]"), time.GetHour(), time.GetMinute(), time.GetSecond());
      strTimeStamp.Format(_T("[%02d:%02d:%02d:%02d:%02d:%02d]"), time.GetYear(), time.GetMonth(), time.GetDay(), time.GetHour(), time.GetMinute(), time.GetSecond());
#ifdef UNICODE
      strLog.Format(_T("%c%s %s\r\n"), strCommand, strTimeStamp, strMessage);
#else
@@ -151,6 +159,7 @@
      case WM_DIPLAY_LOG:
         
         g_pLog->ThreadDisplayMessage(*pstrLog);
         delete pstrLog;
         break;
      default: