当前位置:网站首页>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 .
边栏推荐
- Ramble 72 of redis source code
- Research Report on the scale prediction of China's municipal engineering industry and the prospect of the 14th five year plan 2022-2028
- [2021]NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections
- Idea integrates Microsoft TFs plug-in
- Gossip about redis source code 82
- Qtcharts notes (V) scatter diagram qscatterseries
- Arc 135 supplementary report
- Gossip about redis source code 77
- Distributed transaction -- middleware of TCC -- selection / comparison
- Docking Alipay process [pay in person, QR code Payment]
猜你喜欢
![[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!

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?

Kubedl hostnetwork: accelerating the efficiency of distributed training communication

Briefly understand the operation mode of developing NFT platform

(Video + graphics and text) introduction to machine learning series - Chapter 4 naive Bayes

Recommendation of knowledge base management system

Makefile judge custom variables

Kubedl hostnetwork: accelerating the efficiency of distributed training communication
![[source code] VB6 chat robot](/img/89/46b67f627c8257eaddc70a247c9ba5.jpg)
[source code] VB6 chat robot
![P3371 [template] single source shortest path (weakened version)](/img/c5/bcb22e1ea573253005e56ebbd73bb7.jpg)
P3371 [template] single source shortest path (weakened version)
随机推荐
From functional testing to automated testing, how did I successfully transform my salary to 15K +?
国元证券开户是真的安全可靠吗
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
Gossip about redis source code 76
Correlation analysis summary
Why use get/set instead of exposing properties
Suggestions for improving code quality
NLP pre training technology development
Solve the problem that the kaggle account registration does not display the verification code
Optimization of for loop
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
Global and Chinese market of breast cancer imaging 2022-2028: Research Report on technology, participants, trends, market size and share
Selenium library 4.5.0 keyword explanation (III)
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
Advanced C language - pointer 2 - knowledge points sorting
Struct in linked list
Gossip about redis source code 81
What is the Valentine's Day gift given by the operator to the product?
Anomalies seen during the interview
Joint examination of six provinces 2017