其他分享
首页 > 其他分享> > 错误 C4996 'xxx':This function or variable may be unsafe. Consider using xxx_s instead. To d

错误 C4996 'xxx':This function or variable may be unsafe. Consider using xxx_s instead. To d

作者:互联网

1.将xxx替换为xxx_s

//比如strcpy替换为strcpy_s

2.右键工程名->属性->C/C++->预处理器->预处理器定义->编辑->添加

_CRT_SECURE_NO_DEPRECATE
_CRT_SECURE_NO_WARNINGS

3.在文件中加入#pragma warning(disable:4996)

标签:xxx,help,CRT,NO,WARNINGS,disable,SECURE
来源: https://www.cnblogs.com/creature-lurk/p/15021785.html