Declaration

Visual C#:

int GetLastError(int ShowErrorBox);

Visual C++:

long GetLastError(long ShowErrorBox);

Visual Basic:

Private Sub GetLastError(ByVal ShowErrorBox As Integer) As Integer

Delphi:

function GetLastError(ShowErrorBox : Integer) : Integer;

Parameter:

ShowErrorBox

    1 : Show the error message box.

    0 : Don't show the error message box.

Return Value

Return the Error Code of last operation.

Remarks

This method returns the error code of the last operation. The indication of the returned value is described in the Error Code section.