Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this member function to get the error status for the last operation that failed.
static int PASCAL GetLastError( );
Return Value
The return value indicates the error code for the last Windows Sockets API routine performed by this thread.
Remarks
When a particular member function indicates that an error has occurred, GetLastError should be called to retrieve the appropriate error code. See the individual member function descriptions for a list of applicable error codes.
For more information about the error codes, see Windows Sockets 2 API.
Requirements
Header: afxsock.h