Index: src/ch/UpdaterDlg.cpp =================================================================== diff -u -r8068e0c351055554340ac9755d1bc846893bf2b8 -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 --- src/ch/UpdaterDlg.cpp (.../UpdaterDlg.cpp) (revision 8068e0c351055554340ac9755d1bc846893bf2b8) +++ src/ch/UpdaterDlg.cpp (.../UpdaterDlg.cpp) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248) @@ -10,9 +10,9 @@ #include #include #include "WindowsVersion.h" -#include "../libchcore/TLogger.h" #include "resource.h" #include "CfgProperties.h" +#include "../common/TLogger.h" #define UPDATER_TIMER 639 @@ -56,6 +56,10 @@ { ictranslate::CLanguageDialog::OnInitDialog(); + // set dialog icon + HICON hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); + SetIcon(hIcon, FALSE); + InitRichEdit(); InitUpdateFreqCombo(); InitUpdateChannelCombo(); @@ -83,13 +87,13 @@ { CString str; str.Format(_T("Opening a browser with address %s..."), (PCTSTR)strDownloadAddr); - LOG_DEBUG(str); + LOG_DEBUG(GetLogger()) << str; str.Format(_T("url.dll,FileProtocolHandler %s"), (PCTSTR)strDownloadAddr); ULONG_PTR ulRes = (ULONG_PTR)ShellExecute(nullptr, _T("open"), _T("rundll32.exe"), str, nullptr, SW_SHOW); str.Format(_T("ShellExecute returned %I64u"), (unsigned long long)ulRes); - LOG_DEBUG(str); + LOG_DEBUG(GetLogger()) << str; // close the dialog if succeeded; 32 is some arbitrary value from ms docs if(ulRes > 32) @@ -385,7 +389,7 @@ if(!strError.IsEmpty()) { - LOG_ERROR(strError); + LOG_ERROR(GetLogger()) << strError; } }