当前位置:网站首页>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:
边栏推荐
- Online troubleshooting
- Legion is a network penetration tool
- Exercise 9-4 finding books (20 points)
- VLAN part of switching technology
- Servlet基本原理与常见API方法的应用
- Write a program to judge whether the elements contained in a vector < int> container are 9.20: exactly the same as those in a list < int> container.
- 【OpenCV 例程200篇】218. 多行倾斜文字水印
- Work order management system OTRs
- 使用 C# 提取 PDF 文件中的所有文字(支持 .NET Core)
- /*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*/
猜你喜欢

Today's sleep quality record 78 points

Architecture introduction

Some summaries of the third anniversary of joining Ping An in China

Reasons and solutions for the 8-hour difference in mongodb data date display

The most detailed teaching -- realize win10 multi-user remote login to intranet machine at the same time -- win10+frp+rdpwrap+ Alibaba cloud server

Seven examples to understand the storage rules of shaped data on each bit

BGP advanced experiment

Histogram equalization

Dynamic memory management

C language - stack
随机推荐
按键精灵跑商学习-商品数量、价格提醒、判断背包
Lavel document reading notes -how to use @auth and @guest directives in lavel
原生div具有编辑能力
Two way process republication + routing policy
2021-08-11 function pointer
system design
For programmers, if it hurts the most...
Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
Introduction to extensible system architecture
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
Crawl Zhejiang industry and trade news page
今日睡眠质量记录78分
2020-03-28
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
2021-08-10 character pointer
Check 15 developer tools of Alibaba
Use the data to tell you where is the most difficult province for the college entrance examination!
leetcode729. My schedule 1
对于程序员来说,伤害力度最大的话。。。
Today's sleep quality record 78 points