• <i id='G1rA9'><tr id='G1rA9'><dt id='G1rA9'><q id='G1rA9'><span id='G1rA9'><b id='G1rA9'><form id='G1rA9'><ins id='G1rA9'></ins><ul id='G1rA9'></ul><sub id='G1rA9'></sub></form><legend id='G1rA9'></legend><bdo id='G1rA9'><pre id='G1rA9'><center id='G1rA9'></center></pre></bdo></b><th id='G1rA9'></th></span></q></dt></tr></i><div id='G1rA9'><tfoot id='G1rA9'></tfoot><dl id='G1rA9'><fieldset id='G1rA9'></fieldset></dl></div>
  • <tfoot id='G1rA9'></tfoot>

    <legend id='G1rA9'><style id='G1rA9'><dir id='G1rA9'><q id='G1rA9'></q></dir></style></legend>
      <bdo id='G1rA9'></bdo><ul id='G1rA9'></ul>

      <small id='G1rA9'></small><noframes id='G1rA9'>

      1. 如何使用_CRT_SECURE_NO_WARNINGS

        How to use _CRT_SECURE_NO_WARNINGS(如何使用_CRT_SECURE_NO_WARNINGS)
        <tfoot id='wQjoN'></tfoot>
          <tbody id='wQjoN'></tbody>

              • <bdo id='wQjoN'></bdo><ul id='wQjoN'></ul>
              • <small id='wQjoN'></small><noframes id='wQjoN'>

                  <i id='wQjoN'><tr id='wQjoN'><dt id='wQjoN'><q id='wQjoN'><span id='wQjoN'><b id='wQjoN'><form id='wQjoN'><ins id='wQjoN'></ins><ul id='wQjoN'></ul><sub id='wQjoN'></sub></form><legend id='wQjoN'></legend><bdo id='wQjoN'><pre id='wQjoN'><center id='wQjoN'></center></pre></bdo></b><th id='wQjoN'></th></span></q></dt></tr></i><div id='wQjoN'><tfoot id='wQjoN'></tfoot><dl id='wQjoN'><fieldset id='wQjoN'></fieldset></dl></div>
                  <legend id='wQjoN'><style id='wQjoN'><dir id='wQjoN'><q id='wQjoN'></q></dir></style></legend>

                  本文介绍了如何使用_CRT_SECURE_NO_WARNINGS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在我的简单 MFC 窗口应用程序中,我有几行代码从向导生成的编译错误:

                  I have compile error in my simple MFC window application generated from wizard with several lines of code:

                  错误 C4996:'strncpy':此函数或变量可能不安全.考虑使用 strncpy_s 代替.要禁用弃用,请使用 _CRT_SECURE_NO_WARNINGS.有关详细信息,请参阅在线帮助.

                  error C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

                  我设置Configuration Properties>>C/C++>>Preporocessor>>Preprocessor Definitions>>_CRT_NONSTDC_NO_WARNINGS

                  但这无济于事.我有另一个非常接近的项目,它只在这个地方生成警告,并且没有 _CRT_NONSTDC_NO_WARNINGS 定义.

                  But this does't helped. I have another very close project that generates only warning in this place and it has no _CRT_NONSTDC_NO_WARNINGS definition.

                  项目之间的唯一区别是向导中有几个不同的选项.

                  Only difference between projects is several different options in wizard.

                  为什么 _CRT_NONSTDC_NO_WARNINGS 在第一个项目中没有帮助,为什么第二个项目在没有这个定义的情况下编译没有问题?

                  Why _CRT_NONSTDC_NO_WARNINGS does not helps in first project and why second project compiles without problems without this definition?

                  推荐答案

                  添加者

                  配置属性>>C/C++>>预处理器>>预处理器定义>> _CRT_SECURE_NO_WARNINGS

                  Configuration Properties>>C/C++>>Preporocessor>>Preprocessor Definitions>> _CRT_SECURE_NO_WARNINGS

                  这篇关于如何使用_CRT_SECURE_NO_WARNINGS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Consistent pseudo-random numbers across platforms(跨平台一致的伪随机数)
                  Vary range of uniform_int_distribution(改变uniform_int_distribution的范围)
                  What is a seed in terms of generating a random number?(就生成随机数而言,种子是什么?)
                  Is 1.0 a valid output from std::generate_canonical?(1.0 是 std::generate_canonical 的有效输出吗?)
                  Getting big random numbers in C/C++(在 C/C++ 中获取大随机数)
                  What is the best way to generate random numbers in C++?(在 C++ 中生成随机数的最佳方法是什么?)
                • <i id='xU50W'><tr id='xU50W'><dt id='xU50W'><q id='xU50W'><span id='xU50W'><b id='xU50W'><form id='xU50W'><ins id='xU50W'></ins><ul id='xU50W'></ul><sub id='xU50W'></sub></form><legend id='xU50W'></legend><bdo id='xU50W'><pre id='xU50W'><center id='xU50W'></center></pre></bdo></b><th id='xU50W'></th></span></q></dt></tr></i><div id='xU50W'><tfoot id='xU50W'></tfoot><dl id='xU50W'><fieldset id='xU50W'></fieldset></dl></div>

                  <small id='xU50W'></small><noframes id='xU50W'>

                    <tbody id='xU50W'></tbody>

                        <tfoot id='xU50W'></tfoot>
                        • <bdo id='xU50W'></bdo><ul id='xU50W'></ul>

                          <legend id='xU50W'><style id='xU50W'><dir id='xU50W'><q id='xU50W'></q></dir></style></legend>