对获取EF3返回锁存点功能,基本实现
This commit is contained in:
@@ -65,7 +65,8 @@ void CLogger::SendAndFlush(LPCTSTR format, ...)
|
||||
LeaveCriticalSection(&m_lockLogger);
|
||||
}
|
||||
|
||||
//vswprintf_s()参考连接:https://www.educative.io/answers/what-is-vswprintfs-in-c
|
||||
//vswprintf_s()
|
||||
//参考连接:https://www.educative.io/answers/what-is-vswprintfs-in-c
|
||||
void CLogger::SendAndFlushWithTime(LPCTSTR format, ...)
|
||||
{
|
||||
EnterCriticalSection(&m_lockLogger);
|
||||
@@ -83,7 +84,13 @@ void CLogger::SendAndFlushWithTime(LPCTSTR format, ...)
|
||||
va_list list;
|
||||
//在C中,当无法列出传递函数的所有实参的类型和数目时,可以用省略号指定参数表
|
||||
va_start(list, format);
|
||||
length = vswprintf_s(m_Str2, 5000, format, list);
|
||||
//vswprintf()函数将宽字符串写入宽字符串缓冲区
|
||||
|
||||
//ws:指定指向给定宽字符串缓冲区的指针,该缓冲区将存储结果
|
||||
//len : 指定写回缓冲区的宽字符的最大长度,包括终止的空字符
|
||||
//format : 指定指向空终止的宽字符串的指针
|
||||
//arg : 指定标识变量参数列表的值
|
||||
length = vswprintf(m_Str2, 5000, format, list);
|
||||
CTime _cTime = CTime::GetCurrentTime();
|
||||
CString csTime = _cTime.Format("[%Y/%m/%d %H:%M:%S");
|
||||
struct _timeb timebuffer;
|
||||
@@ -208,7 +215,6 @@ void DelFiles(string path)
|
||||
while (!_findnext(handle, &fileinfo));
|
||||
|
||||
_findclose(handle);
|
||||
return;
|
||||
}
|
||||
|
||||
string ByteArrayToString(byte byteArray[])
|
||||
|
||||
Reference in New Issue
Block a user