vs2012 error c4996: 'fopen': This function or variable may be unsafe
来源:互联网 发布:usb数据采集模块 编辑:程序博客网 时间:2024/06/13 18:47
做数字图像处理作业,使用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,即可。
原文地址:http://blog.csdn.net/zhangyuehuan/article/details/12012635
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
- SQL语句(对数据库进行操作)
- 文章标题
- Android程序中启动页面出现黑色闪动
- Linux——更换python版本
- [Leetcode] 100. Same Tree 解题报告
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- 修改通话期间闹钟的提醒方式
- 页面布局分成9块(九宫格)
- PreEmptive旗下主流.net与Java混淆器Dotfuscator v4.28.2/DashO Pro v8.1发布,新功能抢先看
- java 网络编程
- 无法对表创建多个聚集索引。请在创建新聚集索引前删除现有的聚集索引的问题
- 用两个栈实现队列
- win10 outlook邮件设置
- TCP和UDP编程理解:bind ,recv,recvfrom,send,sendto