title: How to use _CRT_SECURE_NO_WARNINGS
body: <p>I have compile error in my simple MFC window application generated from wizard with several lines of code:</p>
  
  <blockquote>
    <p>error C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, <strong>use _CRT_SECURE_NO_WARNINGS</strong>. See online help for details.</p>
  </blockquote>
  
  <p>I set <code>Configuration Properties&gt;&gt;C/C++&gt;&gt;Preporocessor&gt;&gt;Preprocessor Definitions&gt;&gt; _CRT_NONSTDC_NO_WARNINGS</code></p>
  
  <p>But this does't helped. I have another very close project that generates only warning in this place and it has no <code>_CRT_NONSTDC_NO_WARNINGS</code> definition.</p>
  
  <p>Only difference between projects is several different options in wizard.</p>
  
  <p>Why _CRT_NONSTDC_NO_WARNINGS does not helps in first project and why second project compiles without problems without this definition?</p>