diff --git a/PowerEditor/src/MISC/Common/precompiledHeaders.h b/PowerEditor/src/MISC/Common/precompiledHeaders.h index eba55138..b275c87f 100644 --- a/PowerEditor/src/MISC/Common/precompiledHeaders.h +++ b/PowerEditor/src/MISC/Common/precompiledHeaders.h @@ -32,6 +32,7 @@ // w/o precompiled headers file : 1 minute 55 sec #define _WIN32_WINNT 0x0501 +#define _CRT_NON_CONFORMING_WCSTOK // C RunTime Header Files #include @@ -63,7 +64,11 @@ #include #include #include + +#pragma warning(push) +#pragma warning(disable: 4091) #include +#pragma warning(pop) #include #ifdef UNICODE diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index 91cad99a..e9dc3816 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -2374,9 +2374,9 @@ void ScintillaEditView::convertSelectedTextTo(bool Case) for (int j = 0 ; j < nbChar ; ++j) { if (Case == UPPERCASE) - destStr[j] = (wchar_t)::CharUpperW((LPWSTR)destStr[j]); + destStr[j] = (wchar_t)(UINT_PTR)::CharUpperW((LPWSTR)destStr[j]); else - destStr[j] = (wchar_t)::CharLowerW((LPWSTR)destStr[j]); + destStr[j] = (wchar_t)(UINT_PTR)::CharLowerW((LPWSTR)destStr[j]); } ::WideCharToMultiByte(codepage, 0, destStr, len, srcStr, len, NULL, NULL); @@ -2414,9 +2414,9 @@ void ScintillaEditView::convertSelectedTextTo(bool Case) for (int i = 0 ; i < nbChar ; ++i) { if (Case == UPPERCASE) - selectedStrW[i] = (WCHAR)::CharUpperW((LPWSTR)selectedStrW[i]); + selectedStrW[i] = (WCHAR)(UINT_PTR)::CharUpperW((LPWSTR)selectedStrW[i]); else - selectedStrW[i] = (WCHAR)::CharLowerW((LPWSTR)selectedStrW[i]); + selectedStrW[i] = (WCHAR)(UINT_PTR)::CharLowerW((LPWSTR)selectedStrW[i]); } ::WideCharToMultiByte(codepage, 0, selectedStrW, strWSize, selectedStr, strSize, NULL, NULL); diff --git a/PowerEditor/src/TinyXml/tinyXmlA/tinyxmlA.h b/PowerEditor/src/TinyXml/tinyXmlA/tinyxmlA.h index 0ebfc6a8..8a27d3ed 100644 --- a/PowerEditor/src/TinyXml/tinyXmlA/tinyxmlA.h +++ b/PowerEditor/src/TinyXml/tinyXmlA/tinyxmlA.h @@ -27,6 +27,8 @@ distribution. #define TINYXMLA_INCLUDED #ifdef _MSC_VER +#pragma warning( push ) +#pragma warning( disable : 4458 ) #pragma warning( disable : 4530 ) #pragma warning( disable : 4786 ) #endif @@ -1250,6 +1252,9 @@ private: TiXmlNodeA* node; }; +#ifdef _MSC_VER +#pragma warning( pop ) +#endif #endif diff --git a/PowerEditor/src/TinyXml/tinyxml.h b/PowerEditor/src/TinyXml/tinyxml.h index 6634b70f..143039e8 100644 --- a/PowerEditor/src/TinyXml/tinyxml.h +++ b/PowerEditor/src/TinyXml/tinyxml.h @@ -27,6 +27,8 @@ distribution. #define TINYXML_INCLUDED #ifdef _MSC_VER +#pragma warning( push ) +#pragma warning( disable : 4458 ) #pragma warning( disable : 4530 ) #pragma warning( disable : 4786 ) #endif @@ -1248,6 +1250,9 @@ private: TiXmlNode* node; }; +#ifdef _MSC_VER +#pragma warning( pop ) +#endif #endif diff --git a/PowerEditor/visual.net/notepadPlus.vcxproj b/PowerEditor/visual.net/notepadPlus.vcxproj index ed3e94e1..9ff8e0b7 100644 --- a/PowerEditor/visual.net/notepadPlus.vcxproj +++ b/PowerEditor/visual.net/notepadPlus.vcxproj @@ -69,6 +69,7 @@ Level4 true ProgramDatabase + 4456;4457;4459 /fixed:no %(AdditionalOptions) @@ -111,6 +112,7 @@ true ProgramDatabase NoExtensions + 4456;4457;4459 comctl32.lib;shlwapi.lib;shell32.lib;Oleacc.lib;%(AdditionalDependencies)