当前位置:网站首页>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:
边栏推荐
- Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
- Read a piece of text into the vector object, and each word is stored as an element in the vector. Convert each word in the vector object to uppercase letters. Output the converted elements in the vect
- IPv6 comprehensive experiment
- 183 sets of free resume templates to help everyone find a good job
- MySQL case
- Remove linked list elements
- Devop basic command
- How do microservices aggregate API documents? This wave of show~
- 基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
- Huge number multiplication (C language)
猜你喜欢
随机推荐
Ruby时间格式转换strftime毫秒匹配格式
Rhcsa day 10 operation
Static comprehensive experiment ---hcip1
2. Data type
Latex insert picture, insert formula
【Day1】 deep-learning-basics
AUTOSAR从入门到精通100讲(106)-域控制器中的SOA
使用 C# 提取 PDF 文件中的所有文字(支持 .NET Core)
Rhcsa operation
Time complexity and space complexity
Jianzhi offer 04 (implemented in C language)
Development guidance document of CMDB
Latex learning insertion number - list of filled dots, bars, numbers
如果不知道這4種緩存模式,敢說懂緩存嗎?
leetcode1-3
Introduction to tree and binary tree
Realsense d435 d435i d415 depth camera obtains RGB map, left and right infrared camera map, depth map and IMU data under ROS
MPLS: multi protocol label switching
【Day2】 convolutional-neural-networks
View CSDN personal resource download details









