d:\saved program\ovt_producttesting\ovt_producttesting\ovt_producttestingview.cpp(313) : warning C4996: 'fopen' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'试图把fopen 换成这里推荐的fopen_s,可是换完了后编译出错:(
该怎么样才能将这个警告消除呢?虽然警告不影响运行,但是还是没有的好!
c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'试图把fopen 换成这里推荐的fopen_s,可是换完了后编译出错:(
该怎么样才能将这个警告消除呢?虽然警告不影响运行,但是还是没有的好!
errno_t fopen_s(
FILE** pFile,
const char *filename,
const char *mode
);
估计你没有做相应修改吧。
假如你只是要禁止Warning,直接在Project中定义_CRT_SECURE_NO_DEPRECATE即可。