Fixed logging codepage.
So it should work on Windows 7.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// wCenterWindow
|
||||
// wCenterWindow
|
||||
// CLogger.h
|
||||
|
||||
#pragma once
|
||||
@@ -16,14 +16,15 @@ public:
|
||||
private:
|
||||
SYSTEMTIME lt;
|
||||
CRITICAL_SECTION cs;
|
||||
wchar_t logTimeBuffer[28]{ 0 };
|
||||
wchar_t logBuffer[MAX_LOGBUFFER_LENGTH]{ 0 };
|
||||
std::wofstream fsLogFile;
|
||||
std::wstring szAppTitle{ 0 };
|
||||
std::wstring szAppVersion{ 0 };
|
||||
std::wstring szAppPlatform{ 0 };
|
||||
std::wstring szAppTitleVer{ 0 };
|
||||
wchar_t logTimeBuffer[28] { 0 };
|
||||
wchar_t logBuffer[MAX_LOGBUFFER_LENGTH] { 0 };
|
||||
std::ofstream fsLogFile;
|
||||
std::wstring szAppTitle { 0 };
|
||||
std::wstring szAppVersion { 0 };
|
||||
std::wstring szAppPlatform { 0 };
|
||||
std::wstring szAppTitleVer { 0 };
|
||||
|
||||
std::string ConvU16U8(const std::wstring&);
|
||||
inline wchar_t* GetTimeStamp();
|
||||
void Init();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user