当前位置:网站首页>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 .
边栏推荐
- Data storage - interview questions
- Reading notes on how programs run
- MySQL 8.0.12 error: error 2013 (HY000): lost connection to MySQL server during query
- Analysis on the scale of China's smart health industry and prediction report on the investment trend of the 14th five year plan 2022-2028 Edition
- Global and Chinese markets for blood and liquid heating devices 2022-2028: Research Report on technology, participants, trends, market size and share
- Gossip about redis source code 75
- Subgraph isomorphism -subgraph isomorphism
- It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
- Global and Chinese market of underwater bags 2022-2028: Research Report on technology, participants, trends, market size and share
- Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing
猜你喜欢

Is it really possible that the monthly salary is 3K and the monthly salary is 15K?

Briefly understand the operation mode of developing NFT platform
![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]

Private project practice sharing populate joint query in mongoose makes the template unable to render - solve the error message: syntaxerror: unexpected token r in JSON at

STM32 key light

Celebrate the new year | Suihua fire rescue detachment has wonderful cultural activities during the Spring Festival
![[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!
![[CSDN Q & A] experience and suggestions](/img/db/dff3173dda24ca5740729b54a81153.jpg)
[CSDN Q & A] experience and suggestions

MySQL is installed as a Windows Service

A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders
随机推荐
Arc 135 supplementary report
Gossip about redis source code 83
[CSDN Q & A] experience and suggestions
Docking Alipay process [pay in person, QR code Payment]
Recommendation of knowledge base management system
Global and Chinese market of melting furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Shell script three swordsman sed
Eight year test old bird, some suggestions for 1-3 year programmers
Global and Chinese markets for coronary artery disease treatment devices 2022-2028: Research Report on technology, participants, trends, market size and share
A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders
Gossip about redis source code 73
2020.2.14
P3371 [template] single source shortest path (weakened version)
For loop
Analysis on the scale of China's smart health industry and prediction report on the investment trend of the 14th five year plan 2022-2028 Edition
Selenium library 4.5.0 keyword explanation (4)
From functional testing to automated testing, how did I successfully transform my salary to 15K +?
[NLP] text classification still stays at Bert? Duality is too strong than learning framework
Gossip about redis source code 79
It is forbidden to splice SQL in code