当前位置:网站首页>error C4996: ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_ s instead

error C4996: ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_ s instead

2022-07-06 11:28:00 Sweet potato

When this error occurs , Because strcpy Overflow caused by unsafe function .

The solution is : find 【 Item attribute 】, Click on 【C++】 Inside 【 The preprocessor 】, Yes 【 The preprocessor 】 Editing , Add a piece of code to it :_CRT_SECURE_NO_WARNINGS.

 Insert picture description here

原网站

版权声明
本文为[Sweet potato]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060912436420.html