GetLastError Method

Returns error code for last operation.

Syntax

Visual Basic
Function GetLastError() As Long 
Visual C++ (MFC)
long GetLastError();
Visual C++ (#import)
LONG GetLastError();

Parameters

None.

Return

Retrieves the last error code.