How to solve Visual Studio error C4996

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> f:\program files (x86)\microsoft visual studio 12.0\vc\include\stdio. H (211): see the statement of “fopen”

Quick solutions are as follows

Right click project file 1 and select 2


Then pop up the property page of the file, click 1Processor, and then click 2processor to open the preprocessor, as shown in the figure below


Copy “_crt_secure_no_warnings” in the following red box, then click OK and then click apply.


Problem solving

Similar Posts: