This function or variable may be unsafe
生活随笔
收集整理的这篇文章主要介绍了
This function or variable may be unsafe
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
1>------ 已启动生成: 项目: 20130925, 配置: Debug Win32 ------
1> stdafx.cpp
1>d:\code\20130925\20130925\stdafx.cpp(18): error 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.
1> d:\vs2012\vc\include\stdio.h(218) : 参见“fopen”的声明
1> 20130925.cpp
1> 正在生成代码...
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
解决方案,项目 ->属性 -> c/c++ -> 预处理器 -> 点击预处理器定义,编辑,加入_CRT_SECURE_NO_WARNINGS,即可。
总结
以上是生活随笔为你收集整理的This function or variable may be unsafe的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Building an MFC proj
- 下一篇: rectint 函数