码迷,mamicode.com
首页 > 其他好文 > 详细

错误: error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. 的处理方法

时间:2019-06-07 20:55:03      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:gen   div   plc   zrm   gap   ADG   cnp   icp   vmm   

 

技术图片

为什么会报这个错?因为strcpy这个函数不安全,即会造成栈溢出

在VS2013下如果使用strcpy有时候会报这个错误,解决方法是找到该项目的属性:

 

技术图片

 

在预处理定义中添加:

_CRT_SECURE_NO_WARNINGS

 

错误: error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. 的处理方法

标签:gen   div   plc   zrm   gap   ADG   cnp   icp   vmm   

原文地址:https://www.cnblogs.com/pquan/p/10989029.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!