当前位置:网站首页>Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
2022-07-04 10:30:00 【Big bear loves to work】
How to deal with it Error C4996 ‘WSAAsyncSelect’: Use WSAEventSelect() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings ???
Problem description :VS Medium warning WSAAsyncSelect Use of functions , He suggested that we use WSAEventSelect Function instead of , Or add a macro definition _WINSOCK_DEPRECATED_NO_WARNINGS
1. If you use WSAEventSelect function , Then it is equivalent to changing a network model , For example, the event selection model ( This is not the result we want )
2. Adding macro definitions is a better way , As shown in the figure below
Step1: 
Step2:
Step3:
Step4:
边栏推荐
- For programmers, if it hurts the most...
- Network disk installation
- From programmers to large-scale distributed architects, where are you (2)
- Doris / Clickhouse / Hudi, a phased summary in June
- IPv6 comprehensive experiment
- uniapp---初步使用websocket(长链接实现)
- What is devsecops? Definitions, processes, frameworks and best practices for 2022
- 原生div具有编辑能力
- BGP advanced experiment
- leetcode729. My schedule 1
猜你喜欢

Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1

The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded

system design

Knapsack problem and 0-1 knapsack problem

183 sets of free resume templates to help everyone find a good job

5g/4g wireless networking scheme for brand chain stores

IPv6 comprehensive experiment

Delayed message center design

uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前

Online troubleshooting
随机推荐
A little feeling
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
今日睡眠质量记录78分
Online troubleshooting
Whether a person is reliable or not, closed loop is very important
Talk about scalability
Sword finger offer 31 Stack push in and pop-up sequence
How do microservices aggregate API documents? This wave of show~
MPLS: multi protocol label switching
对于程序员来说,伤害力度最大的话。。。
Legion is a network penetration tool
Jianzhi offer 04 (implemented in C language)
Dynamic memory management
For programmers, if it hurts the most...
Check 15 developer tools of Alibaba
C language - stack
Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
Service developers publish services based on EDAs
Reasons and solutions for the 8-hour difference in mongodb data date display
What is an excellent architect in my heart?