VS2015套接字编程时error C4996错误处理

https://blog.csdn.net/hou09tian/article/details/74359036

在 vs2017下,需要对以前的代码兼容的话,需要localtime, inet_addr函数进行重新写或者去掉SDL检查。

去掉SDL检查的方法:

工程右键-属性-配置属性-c/C++-常规-SDL检查,选择否(sdl-)

猜你喜欢

转载自blog.csdn.net/dongxinddd123/article/details/85604578