'fopen': This function or variable may be unsafe. Consider using fopen

    xiaoxiao2025-03-23  23

    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.

    转载请注明原文地址: https://ju.6miu.com/read-1297301.html
    最新回复(0)