'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprec

来源:互联网 发布:性别歧视 数据 编辑:程序博客网 时间:2024/06/04 01:36

The problems have seen in the processing in VS 2012.

(1) d:\coding\binaryimage\binaryimage\binaryimage.cpp(33): 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. 使用提示中的_CRT_SECURE_NO_WARNINGS,以下是使用方法:
        a.  Project properties->Configuration Properties->C/C++->Preprocessor->Preprocessor Definitions
        b. 点击按钮 (...)

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

You can search the web:http://blog.csdn.net/cddchina/article/details/18617891 to find other methods.

0 0
原创粉丝点击