DTWAIN_GetLastError |
Top Previous Next |
The DTWAIN_GetLastError function returns the last error that occurred when a DTWAIN function was called.
LONG DTWAIN_GetLastError( );
Parameters None.
Return Values Returns a non-zero value denoting the error code.
Comments The DTWAIN_GetLastError returns the last error that occurred when a DTWAIN function was called. Usually if a FALSE or error condition is returned, your application can check the error code.
DTWAIN does not reset the error code, so the best place to call DTWAIN_GetLastError is immediately after a function fails.
To get a meaningful error message associated with the error number, call DTWAIN_GetErrorString.
TWAIN State Transitions None
Prerequisite Calls None.
See Also |