无法立即完成一个非阻挡性套接字操作。WSAENOTSOCK
(10038)
Socket operation on non-socket.
An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid. 在WINSOCK2.H 定义了这些错误码,在MSDN上有解释
(10038)
Socket operation on non-socket.
An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid. 在WINSOCK2.H 定义了这些错误码,在MSDN上有解释
解决方案 »
- 英格兰平了,继续散分
- CPropertySheet和CPropertyPage指定区域填充颜色
- 数据库访问几次后,速度非常的慢
- 在VC中以C语言编写一个头文件,其中想定义HFONT类型变量,但总有问题,大家帮帮忙啊!
- 苦求:我遇到的最难问题,如何实现tab控件的透明,来显示主dialog的渐进颜色?
- 如何用程序启用网络设置里面的Microsoft网络客户端
- WaitForMultipleObjects的问题??
- 关于串口通信!
- 如何添加一个消息,急,在线等...
- 我编写的Winlogon Notification Packages不能正常工作!
- 如何强行结束程序?
- 为什么我调用RemoveDirectory总是失败
LPVOID lpMsgBuf;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL
);
// Process any inserts in lpMsgBuf.
// ...
// Display the string.
AfxMessageBox((LPCTSTR)lpMsgBuf);
// Free the buffer.
LocalFree( lpMsgBuf );
Visual Studio里的一个工具,只要输入错误代码
上面的信息就是他返回的
此错误代码值所对应的描述字符串为:
无法立即完成一个非阻挡性套接字操作。