Added check for a new version of the application.

This commit is contained in:
2023-06-04 14:23:35 +03:00
parent aadba59546
commit e74c775f90
11 changed files with 1289 additions and 19 deletions

View File

@@ -1,14 +1,16 @@
// wCenterWindow
// logger.h
// wLogger v3.2 (Edited version from RBTray project [https://github.com/benbuck/rbtray])
// wLogger v3.3 (Edited version from RBTray project [https://github.com/benbuck/rbtray])
//
// Usage: LOG_TO_FILE(L"%s(%d): Log message", TEXT(__FUNCTION__), __LINE__);
//
#pragma once
//#include "globals.h"
//#include "wCenterWindow.h"
#define LOG_TO_FILE(fmt, ...) StringCchPrintfW(debugBuffer, DBUFLEN, fmt, ##__VA_ARGS__); logfile << GetTimeStamp() << debugBuffer << std::endl;
#define LOG_TO_FILE(fmt, ...) do {\
EnterCriticalSection(&cs); \
StringCchPrintfW(debugBuffer, DBUFLEN, fmt, ##__VA_ARGS__); \
logfile << GetTimeStamp() << debugBuffer << std::endl; \
LeaveCriticalSection(&cs); \
} while (0);
wchar_t* GetTimeStamp();
void OpenLogFile(const wchar_t[], const wchar_t[]);