严重性    代码    说明    项目    文件    行    禁止显示状态
错误    C4996    'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.    4.20    d:\ptrstr.cpp    24    

vs2017 C4996 错误

 

 vs2017 C4996 错误

 2, 或者把: #define _CRT_SECURE_NO_WARNINGS 放到源文件的最上面。

 

生新编译,生成新的可执行文件既可。

 

相关文章:

  • 2022-01-07
  • 2021-12-12
  • 2021-07-05
  • 2021-08-28
  • 2021-09-24
  • 2021-10-28
  • 2021-04-15
  • 2021-09-26
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2021-10-28
  • 2021-09-12
  • 2021-08-07
  • 2021-10-29
相关资源
相似解决方案