About warning 4996: I received 4 warning C4996 in 17.00-beta source after comment out this line of compiler.h in VS2017(with Windows SDK 10.0.15063.0): //#pragma warning(disable : 4996) // This function or variable may be unsafe fopen(StdOutStream.cpp) and _tfopen(StdInStream.cpp) Replace with fopen_s and _tfopen_s. In StdOutStream.cpp: - _stream = fopen(fileName, kFileOpenMode); + fopen_s(&_stream, fileName, kFileOpenMode); In StdInStream.cpp: - _stream = _tfopen(fileName, kFileOpenMode); + _tfopen_s(&_stream,...
About warning 4996: I received 4 warning C4996 in 17.00-beta source after comment out this line of compiler.h in VS2017(with Windows SDK 10.0.15063.0): //#pragma warning(disable : 4996) // This function or variable may be unsafe fopen(StdOutStream.cpp) and _tfopen(StdInStream.cpp) Replace with fopen_s and _tfopen_s. In StdOutStream.cpp: - _stream = fopen(fileName, kFileOpenMode); + fopen_s(&_stream, fileName, kFileOpenMode); In StdInStream.cpp: - _stream = _tfopen(fileName, kFileOpenMode); + _tfopen_s(&_stream,...
About warning 4996: I received 4 warning C4996 in 17.00-beta source after comment out this line of compiler.h in VS2017(with Windows SDK 10.0.15063.0): //#pragma warning(disable : 4996) // This function or variable may be unsafe fopen(StdOutStream.cpp) and _tfopen(StdInStream.cpp) Replace with fopen_s and _tfopen_s. In StdOutStream.cpp: - _stream = fopen(fileName, kFileOpenMode); + fopen_s(&_stream, fileName, kFileOpenMode); In StdInStream.cpp: - _stream = _tfopen(fileName, kFileOpenMode); + _tfopen_s(&_stream,...
About warning 4996: I received 4 warning C4996 in 17.00-beta source after comment out this line in VS2017: //#pragma warning(disable : 4996) // This function or variable may be unsafe fopen and _tfopen Replace with fopen_s and _tfopen_s. In StdOutStream.cpp: - _stream = fopen(fileName, kFileOpenMode); + fopen_s(&_stream, fileName, kFileOpenMode); In StdInStream.cpp: - _stream = _tfopen(fileName, kFileOpenMode); + _tfopen_s(&_stream, fileName, kFileOpenMode); These calls are secure patched version...
About warning 4996: fopen and _tfopen Replace with fopen_s and _tfopen_s. In StdOutStream.cpp: - _stream = fopen(fileName, kFileOpenMode); + fopen_s(&_stream, fileName, kFileOpenMode); In StdInStream.cpp: - _stream = _tfopen(fileName, kFileOpenMode); + _tfopen_s(&_stream, fileName, kFileOpenMode); These calls are secure patched version of CRT functions, while _s means 'secure'. Useful information here: https://docs.microsoft.com/en-us/cpp/c-runtime-library/security-enhanced-versions-of-crt-functions...
About warning 4996: fopen and _tfopen Replace with fopen_s and _tfopen_s. In StdOutStream.cpp: - _stream = fopen(fileName, kFileOpenMode); + fopen_s(&_stream, fileName, kFileOpenMode); In StdInStream.cpp: - _stream = _tfopen(fileName, kFileOpenMode); + _tfopen_s(&_stream, fileName, kFileOpenMode); These calls are secure patched version of CRT functions, while _s means 'secure'. Useful information here: https://docs.microsoft.com/en-us/cpp/c-runtime-library/security-enhanced-versions-of-crt-functions...
About warning 4996: fopen and _tfopen Replace with fopen_s and _tfopen_s. In StdOutStream.cpp: - _stream = fopen(fileName, kFileOpenMode); + fopen_s(&_stream, fileName, kFileOpenMode); In StdInStream.cpp: - _stream = _tfopen(fileName, kFileOpenMode); + _tfopen_s(&_stream, fileName, kFileOpenMode); These calls are secure patched version of CRT functions made by M$, while _s means 'secure'. Useful information here: https://docs.microsoft.com/en-us/cpp/c-runtime-library/security-enhanced-versions-of-crt-functions...
About warning 4996: fopen and _tfopen Replace with fopen_s and _tfopen_s. In StdOutStream.cpp: - _stream = fopen(fileName, kFileOpenMode); + fopen_s(&_stream, fileName, kFileOpenMode); In StdInStream.cpp: - _stream = _tfopen(fileName, kFileOpenMode); + _tfopen_s(&_stream, fileName, kFileOpenMode); These calls are secure patched version of CRT functions made by M$, while _s means 'secure'. Useful information here: https://docs.microsoft.com/en-us/cpp/c-runtime-library/security-enhanced-versions-of-crt-functions...