vs2012 error c4996: 'fopen': This function or variable may be unsafe
来源:互联网 发布:知乎 for mac 编辑:程序博客网 时间:2024/05/18 03:11
使用vs2012,遇到如下错误。
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,即可。
0 0
- error C4996: 'fopen': This function or variable may be unsafe.
- error c4996: 'fopen': This function or variable may be unsafe
- error c4996: 'fopen': This function or variable may be unsafe
- error C4996: 'fopen': This function or variable may be unsafe.
- error C4996: 'fopen': This function or variable may be unsafe.
- vs2012 error c4996: This function or variable may be unsafe
- vs2012 error c4996: This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe解决方法
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- 微信营销活动
- andorid分辨率
- DevExpress v15.1:其它控件升级
- IP报文结构
- CCF 集合竞价 【大水】
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- 常用Math函数
- SVN局域网搭建
- Android 签名机制
- 根据26字母排列来搜索排列全国城市
- 欢迎使用CSDN-markdown编辑器
- win8配置最新版flashdevelop v2和 sdk4.6+air18 配置系统未能初始化flashplayer等 解决配置方案
- HP大中华区总裁孙振耀退休感言(上)
- Android SDK Timer的schedule()方法的正确使用