当前位置:网站首页>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:
边栏推荐
- Rhcsa learning practice
- Es entry series - 6 document relevance and sorting
- /*The rewriter outputs the contents of the IA array. It is required that the type defined by typedef cannot be used in the outer loop*/
- Occasional pit compiled by idea
- Sword finger offer 31 Stack push in and pop-up sequence
- Some summaries of the third anniversary of joining Ping An in China
- PHP code audit 3 - system reload vulnerability
- Exercise 9-1 time conversion (15 points)
- Kotlin: collection use
- 对于程序员来说,伤害力度最大的话。。。
猜你喜欢
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
Reasons and solutions for the 8-hour difference in mongodb data date display
Rhcsa12
leetcode1-3
Three schemes of ZK double machine room
Static comprehensive experiment ---hcip1
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
如果不知道這4種緩存模式,敢說懂緩存嗎?
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
【Day2】 convolutional-neural-networks
随机推荐
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
Ruby time format conversion strftime MS matching format
Uniapp--- initial use of websocket (long link implementation)
Occasional pit compiled by idea
Online troubleshooting
What is devsecops? Definitions, processes, frameworks and best practices for 2022
Exercise 9-1 time conversion (15 points)
原生div具有编辑能力
PHP代码审计3—系统重装漏洞
Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
Seven examples to understand the storage rules of shaped data on each bit
Exercise 9-3 plane vector addition (15 points)
Linked list operation can never change without its roots
Latex insert picture, insert formula
Three schemes of ZK double machine room
Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?
Hlk-w801wifi connection
Vs201 solution to failure to open source file HPP (or link library file)
Four characteristics and isolation levels of database transactions
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