how to disable deprecation use _crt_secure_no_warnings code example Example: _CRT_SECURE_NO_WARNINGS #pragma warning(disable:4996)