Preparations for the release of the 64-bit version.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// wCenterWindow
|
||||
// CLogger.cpp
|
||||
#include "CLogger.h"
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
#include <strsafe.h>
|
||||
|
||||
@@ -70,6 +71,20 @@ CLogger::CLogger(const wchar_t* _appTitle, const wchar_t* _appVersion) {
|
||||
Init();
|
||||
}
|
||||
|
||||
CLogger::CLogger(const wchar_t* _appTitle, const uint8_t _appPlatform) {
|
||||
szAppTitle = _appTitle; szAppPlatform = std::to_wstring(_appPlatform);
|
||||
szAppTitleVer = _appTitle;
|
||||
szAppTitleVer.append(L" (x").append(szAppPlatform).append(L")");
|
||||
Init();
|
||||
}
|
||||
|
||||
CLogger::CLogger(const wchar_t* _appTitle, const wchar_t* _appVersion, const uint8_t _appPlatform) {
|
||||
szAppTitle = _appTitle; szAppVersion = _appVersion; szAppPlatform = std::to_wstring(_appPlatform);
|
||||
szAppTitleVer = _appTitle;
|
||||
szAppTitleVer.append(L", v").append(_appVersion).append(L" (x").append(szAppPlatform).append(L")");
|
||||
Init();
|
||||
}
|
||||
|
||||
CLogger::~CLogger() {
|
||||
if (fsLogFile) {
|
||||
fsLogFile << GetTimeStamp() << "Stop log." << std::endl;
|
||||
|
||||
@@ -12,6 +12,8 @@ public:
|
||||
void Out(const wchar_t*, ...);
|
||||
CLogger(const wchar_t*);
|
||||
CLogger(const wchar_t*, const wchar_t*);
|
||||
CLogger(const wchar_t*, const uint8_t);
|
||||
CLogger(const wchar_t*, const wchar_t*, const uint8_t);
|
||||
~CLogger();
|
||||
|
||||
private:
|
||||
@@ -24,6 +26,7 @@ private:
|
||||
std::wofstream fsLogFile;
|
||||
std::wstring szAppTitle{ 0 };
|
||||
std::wstring szAppVersion{ 0 };
|
||||
std::wstring szAppPlatform{ 0 };
|
||||
std::wstring szAppTitleVer{ 0 };
|
||||
|
||||
inline wchar_t* GetTimeStamp();
|
||||
|
||||
@@ -31,7 +31,10 @@ HMENU hMenu = NULL, hPopup = NULL;
|
||||
HWND hFgWnd = NULL;
|
||||
BOOL bKPressed = FALSE, bMPressed = FALSE, fShowIcon = TRUE, fCheckUpdates = TRUE, bWorkArea = TRUE;
|
||||
BOOL bLCTRL = FALSE, bLWIN = FALSE, bKEYV = FALSE;
|
||||
CLogger logger(TEXT(PRODUCT_NAME), TEXT(VERSION_STR));
|
||||
//CLogger logger(TEXT(PRODUCT_NAME), TEXT(VERSION_STR), ARCH);
|
||||
//CLogger logger(TEXT(PRODUCT_NAME), TEXT(VERSION_STR));
|
||||
//CLogger logger(TEXT(PRODUCT_NAME), ARCH);
|
||||
CLogger logger(TEXT(PRODUCT_NAME));
|
||||
|
||||
NOTIFYICONDATAW nid = { 0 };
|
||||
MENUITEMINFO mii = { 0 };
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
#define T1 60
|
||||
#define T2 86400
|
||||
|
||||
#ifdef _WIN64
|
||||
#define ARCH 64
|
||||
#else
|
||||
#define ARCH 86
|
||||
#endif
|
||||
|
||||
#define MAX_LOADSTRING 50
|
||||
|
||||
// Windows Header Files
|
||||
|
||||
Reference in New Issue
Block a user