Export (0) Print
Expand All


Call this member function to get the error status for the last operation that failed.

static int PASCAL GetLastError( );

The return value indicates the error code for the last Windows Sockets API routine performed by this thread.

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.

Header: afxsock.h

© 2014 Microsoft