use _crt_secure_no_warnings visual studio 2017 code example Example: _CRT_SECURE_NO_WARNINGS #pragma warning(disable:4996)