Copyright: Since May 13, 2019, all technical blog article on this website and Jane book synchronization. https://blog.csdn.net/y601500359/article/details/90205569
CFile log_file;
int log_file_opened = 0;
void logMessage(const char * sMsg)
{
if(!log_file_opened)
{
log_file.Open("D:\\tex.log", CFile::modeCreate|CFile::modeWrite);
log_file_opened = 1;
}
int len = strlen(sMsg);
log_file.Write(sMsg, len);
}