Home c++ how to disable #define _crt_secure_no_warnings warnings in vs 2017

how to disable #define _crt_secure_no_warnings warnings in vs 2017




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 .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions