visual studio 2005:warning C4996: strcpy was declared deprecated
2009-08-09 15:21
351 查看
visual studio 2005:warning C4996: strcpy was declared deprecated
解决办法: 右键该项目,属性-->配置属性-->c/c++-->预处理器-->预处理器定添加如下字段_CRT_SECURE_NO_DEPRECATE标记即可。 出现这样的警告,是因为VC2005中认为CRT中的一组函数如果使用不当,可能会产生诸如内存泄露、缓冲区溢出、非法访问等安全问题。这些函数如:strcpy、strcat等。对于这些问题,可以使用_CRT_SECURE_NO_DEPRECATE标记来忽略这些警告问题。 |
相关文章推荐
- warning C4996: strcpy was declared deprecated
- VS2005 出现warning C4996: strcpy was declared deprecated
- (转)出现这样的警告 warning C4996: strcpy was declared deprecated
- VS2005 出现警告warning C4996: strcpy was declared deprecated 的解决办法
- warning C4996: 'strcpy' was declared deprecated
- VS2005编译VC6的工程,warning C4996: strcpy was declared deprecated
- warning C4996: ''strcpy'' was declared deprecated
- VS2005 出现warning C4996: strcpy was declared deprecated
- warning C4996: 'sprintf' was declared deprecated see declaration of 'sprintf'
- Visual C++ Tips: warning C4996: 'stricmp' was declared deprecated
- 《warning C4996: 'sprintf' was declared deprecated see declaration of 'sprintf'》
- VC2005去掉烦人的warning C4996: '×××' was declared deprecated
- warning C4996: '_snprintf' was declared deprecated 警告信息的消除方法
- warning C4996: 'sprintf' was declared deprecated see declaration of 'sprintf'
- 'scanf' was declared deprecated,
- 在VS2005下编译was declared deprecated警告
- error C4996: 'avcodec_free_frame': was declared deprecated
- 在C++遇到有些关键字或者函数被弃用的情况,比如xxx was declared deprecated
- 《转》在VS2005下编译was declared deprecated警告
- 'fopen' was declared deprecated