How to disable warnings in VS 2017? Using #Define _CRT_Secure_no_warnings at the very beginning of the code does not help. If you put in the properties of the preprocessor, I get 100+ errors in compilation.
Answer 1
Enable this directive in the header>stdafx.h
.
Answer 2
will suit any of the methods you mentioned. And they all work perfectly. But it is better not to climb the code by non-standard directives, but to do it in the project settings. Only in the properties of the preprocessor need to write _crt_secure_no_warnings
, and not #define _CRT_Secure_no_warnings
.