Documentation

xPCGetLastError

Return constant of last error

Prototype

int xPCGetLastError(void);

Return

Returns the error constant for the last reported error. If the function did not detect an error, it returns 0.

Description

The xPCGetLastError function returns the constant of the last reported error by another API function. This value is reset every time you call a new function. Therefore, check this constant value immediately after a call to an API function. For a list of error constants and messages, see C API Error Messages.

Introduced before R2006a

Was this topic helpful?