| | |
| | | void CDisplayMessage::SetPath(const CString& strPath) |
| | | { |
| | | m_strLogPath = strPath; |
| | | |
| | | CString m_GlobalLogPath; |
| | | m_strLogFile.Format(_T("D:\\DIT_LogData\\%04d%02d%02d"), m_strLogPath, m_TimeLogFile.GetYear(), m_TimeLogFile.GetMonth(), m_TimeLogFile.GetDay()); |
| | | CreateDirectory(m_strLogFile, NULL); |
| | | CreateDirectory(m_strLogPath, NULL); |
| | | |
| | | MakeLogFile(); |
| | |
| | | BOOL CDisplayMessage::MakeLogFile() |
| | | { |
| | | // Log 처리 |
| | | CString m_GlobalLogPath; |
| | | m_strLogFile.Format(_T("D:\\DIT_LogData\\%04d%02d%02d"), m_TimeLogFile.GetYear(), m_TimeLogFile.GetMonth(), m_TimeLogFile.GetDay()); |
| | | CreateDirectory(m_strLogFile, NULL); |
| | | |
| | | if (m_strLogPath.IsEmpty()) |
| | | return FALSE; |
| | | |