// Open and delete the Log File LogFile.open(m_LogFilePath, std::ofstream::out | std::ofstream::binary); // Check for a file open failure if (LogFile.fail() != 0) { Prompt.LoadString(IDE_FILE_OPEN_ERR); AfxMessageBox((Prompt + "\n") + m_LogFilePath, MB_TOPMOST | MB_OK | MB_ICONINFORMATION); } // Write a header to the log file Header.LoadString(IDS_LOG_FILE_HEADER); Header += _T("\n\n"); LogFile << Header;
<<
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)