当前位置:网站首页>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:
边栏推荐
- Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
- Development guidance document of CMDB
- Sword finger offer 31 Stack push in and pop-up sequence
- 使用 C# 提取 PDF 文件中的所有文字(支持 .NET Core)
- C language structure to realize simple address book
- 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
- Three schemes of ZK double machine room
- Static comprehensive experiment ---hcip1
- VLAN part of switching technology
- Ruby time format conversion strftime MS matching format
猜你喜欢

Collection of practical string functions

Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}

Today's sleep quality record 78 points

Huge number multiplication (C language)

Architecture introduction

Doris / Clickhouse / Hudi, a phased summary in June

From programmers to large-scale distributed architects, where are you (2)

From programmers to large-scale distributed architects, where are you (I)

Servlet基本原理与常见API方法的应用

Seven examples to understand the storage rules of shaped data on each bit
随机推荐
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
【Day2】 convolutional-neural-networks
Pod management
The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
leetcode1-3
2020-03-28
Exercise 7-4 find out the elements that are not common to two arrays (20 points)
Exercise 9-1 time conversion (15 points)
Map container
有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
Seven examples to understand the storage rules of shaped data on each bit
C language - stack
Es advanced series - 1 JVM memory allocation
Custom type: structure, enumeration, union
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
Velodyne configuration command
VLAN part of switching technology
Jianzhi offer 04 (implemented in C language)
BGP advanced experiment
Devop basic command