当前位置:网站首页>Severity code description the project file line prohibits the display of status error c4996 fopen ('fscanf ', StrCmp): this function or variable may be unsafe The most comprehensive solution
Severity code description the project file line prohibits the display of status error c4996 fopen ('fscanf ', StrCmp): this function or variable may be unsafe The most comprehensive solution
2022-07-04 00:27:00 【Gulu a mouthful of warm water】
solve fopen、fscanf stay VS Replace with fopen_s、fscanf_s The most complete solution -------------- ps: In the use of MFC The problems mentioned above are encountered in the course of the project , There are three ways to solve this problem : Add... To the front of the program #define _CRT_SECURE_NO_DEPRECATE;
Method 2 : Add... To the front of the program #define _CRT_SECURE_NO_WARNINGS;
Method 3 : Add... To the front of the program #pragma warning(disable:4996);
Method four : hold scanf、scanf Change it to scanf_s、fopen_s, Specific method please Baidu ;
Method five : There's no need to add that line of code to the front of the program , Just uncheck when you create a new project “SDL Check ” that will do ;
Methods six : If the project is established , Close... In project properties SDL It's OK ;
Methods seven : Just set up the project ; Put the macro definition of error report in Item attribute -- C/C++-- The preprocessor -- Preprocessor definition ;
Methods eight : stay Item attribute -- c/c++ -- Command line add to :/D _CRT_SECURE_NO_WARNINGS That's it .
边栏推荐
- 2022 system integration project management engineer examination knowledge points: software development model
- Test the influence of influent swacth on the electromagnetic coil of quartz meter
- AI Challenger 2018 text mining competition related solutions and code summary
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- Stock price forecast
- Idea set class header comments
- Similarities and differences of text similarity between Jaccard and cosine
- Eight year test old bird, some suggestions for 1-3 year programmers
- Introducing Software Testing
- Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

Makefile judge custom variables

JDBC Technology

China standard gas market prospect investment and development feasibility study report 2022-2028

NLP Chinese corpus project: large scale Chinese natural language processing corpus

Idea integrates Microsoft TFs plug-in

Celebrate the new year | Suihua fire rescue detachment has wonderful cultural activities during the Spring Festival

How will the complete NFT platform work in 2022? How about its core functions and online time?
![[source code] VB6 chat robot](/img/89/46b67f627c8257eaddc70a247c9ba5.jpg)
[source code] VB6 chat robot

Iclr2022: how does AI recognize "things I haven't seen"?

Joint examination of six provinces 2017
随机推荐
Gossip about redis source code 81
MySQL winter vacation self-study 2022 12 (1)
[CSDN Q & A] experience and suggestions
How to trade spot gold safely?
[PHP basics] session basic knowledge, application case code and attack and defense
Global and Chinese markets for instant saliva testing devices 2022-2028: Research Report on technology, participants, trends, market size and share
Gossip about redis source code 75
It is worthy of "Alibaba internal software test interview notes" from beginning to end, all of which are essence
Eight year test old bird, some suggestions for 1-3 year programmers
[about text classification trick] things you don't know
A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders
Qtcharts notes (V) scatter diagram qscatterseries
Idea integrates Microsoft TFs plug-in
Self study software testing. To what extent can you go out and find a job?
2020.2.14
Iclr2022: how does AI recognize "things I haven't seen"?
HR disgusted interview behavior
AI Challenger 2018 text mining competition related solutions and code summary
For loop
国元证券开户是真的安全可靠吗