八叶草

学习资料记录

_CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE

_CRT_SECURE_NO_WARNINGS
Warning 1 warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

_CRT_SECURE_NO_DEPRECATE
1>warning C4996: 'strcpy' was declared deprecated
1>d:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
1>Message:'This function or variable may be unsafe.Consider using strcpy_s instead.To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'




1. #pragma warning( disable : 4996)
2. _CRT_SECURE_NO_WARNINGS (_CRT_SECURE_NO_DEPRECATE )
a. Project properties->Configuration Properties->C/C++->Preprocessor->Preprocessor Definitions
b. 点击按钮 (...)

c. 输入:_CRT_SECURE_NO_WARNINGS。 注:使用 "\n" 相隔

3.#define _CRT_SECURE_NO_WARNINGS(_CRT_SECURE_NO_DEPRECATE )
#include <stdio.h>





posted on 2011-07-20 10:07 八叶草 阅读(2046) 评论(0)  编辑 收藏 引用 所属分类: VCIDE


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理