当前位置:网站首页>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 .
边栏推荐
- STM32 GPIO CSDN creative punch in
- Ramble 72 of redis source code
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- 2022 Software Test Engineer skill list, please check
- Bodong medical sprint Hong Kong stocks: a 9-month loss of 200million Hillhouse and Philips are shareholders
- [about text classification trick] things you don't know
- I wrote a chat software with timeout connect function
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Selenium library 4.5.0 keyword explanation (II)
- Vscode regular match replace console log(.*)
猜你喜欢

A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders

Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing
![[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!](/img/28/fc05f2e8d53cf81fd061c799090022.jpg)
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!

Sorry, Tencent I also refused

BBS forum recommendation

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

(Introduction to database system | Wang Shan) Chapter V database integrity: Exercises

Self study software testing. To what extent can you go out and find a job?
![Several ways to set up a blog locally [attach relevant software download links]](/img/2f/51a09d9ef71065319ed90306517854.jpg)
Several ways to set up a blog locally [attach relevant software download links]

Att & CK actual combat series - red team actual combat - V
随机推荐
Distributed transaction -- middleware of TCC -- selection / comparison
JDBC Technology
Eight year test old bird, some suggestions for 1-3 year programmers
P1339 [USACO09OCT]Heat Wave G
Gossip about redis source code 78
Test the influence of influent swacth on the electromagnetic coil of quartz meter
Make small tip
STM32 GPIO CSDN creative punch in
UTS | causal reasoning random intervention based on Reinforcement Learning
1214 print diamond
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
Zipper table in data warehouse (compressed storage)
Selenium library 4.5.0 keyword explanation (4)
Data storage - interview questions
Gossip about redis source code 81
Global and Chinese markets for blood and liquid heating devices 2022-2028: Research Report on technology, participants, trends, market size and share
What is the Valentine's Day gift given by the operator to the product?
Bodong medical sprint Hong Kong stocks: a 9-month loss of 200million Hillhouse and Philips are shareholders
Vscode regular match replace console log(.*)
Sorry, Tencent I also refused