diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index bad63107..9804b87e 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -36,6 +36,8 @@ #include "localizationString.h" #include "UserDefineDialog.h" +#pragma warning(disable : 4996) // for GetVersionEx() + using namespace std; @@ -1680,11 +1682,11 @@ bool NppParameters::getUserParametersFromXmlTree() std::pair NppParameters::addUserDefineLangsFromXmlTree(TiXmlDocument *tixmldoc) { if (!tixmldoc) - return std::pair(0, 0); + return std::make_pair(static_cast(0), static_cast(0)); TiXmlNode *root = tixmldoc->FirstChild(TEXT("NotepadPlus")); if (!root) - return std::pair(0, 0); + return std::make_pair(static_cast(0), static_cast(0)); return feedUserLang(root); } @@ -2667,7 +2669,7 @@ std::pair NppParameters::feedUserLang(TiXmlNode *n } } int iEnd = _nbUserLang; - return pair(iBegin, iEnd); + return pair(static_cast(iBegin), static_cast(iEnd)); } bool NppParameters::importUDLFromFile(const generic_string& sourceFile) diff --git a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp index 11f362d7..872294fe 100644 --- a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp +++ b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp @@ -34,6 +34,8 @@ #include "Parameters.h" #include "localization.h" +#pragma warning(disable : 4996) // for GetVersion() + INT_PTR CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) { switch (message) diff --git a/PowerEditor/visual.net/notepadPlus.vcxproj b/PowerEditor/visual.net/notepadPlus.vcxproj index 13f8b663..0042313f 100755 --- a/PowerEditor/visual.net/notepadPlus.vcxproj +++ b/PowerEditor/visual.net/notepadPlus.vcxproj @@ -23,28 +23,29 @@ {FCF60E65-1B78-4D1D-AB59-4FC00AC8C248} Notepad++ Win32Proj + 8.1 Application - v140_xp + v141 Unicode true Application - v140_xp + v141 Unicode true Application - v140_xp + v141 Unicode Application - v140_xp + v141 Unicode @@ -106,6 +107,7 @@ false 4091;4456;4457;4459 /Zc:strictStrings %(AdditionalOptions) + false /fixed:no %(AdditionalOptions) @@ -143,6 +145,7 @@ false 4091;4456;4457;4459 /Zc:strictStrings %(AdditionalOptions) + false /fixed:no %(AdditionalOptions) @@ -186,6 +189,7 @@ true 4091;4456;4457;4459 /Zc:strictStrings %(AdditionalOptions) + false comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;%(AdditionalDependencies) @@ -237,6 +241,7 @@ copy ..\src\contextMenu.xml ..\bin\contextMenu.xml true 4091;4456;4457;4459 /Zc:strictStrings %(AdditionalOptions) + false comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;Dbghelp.lib;Version.lib;Crypt32.lib;wintrust.lib;Sensapi.lib;%(AdditionalDependencies)