DTWAIN_GetLastError
|
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. You should call the DTWAIN_GetLastError function immediately when a function's return value indicates that such a call will return useful data. That is because some functions may reset the error code to zero when they succeed, wiping out the error code set by the most recently failed function. To get a meaningful error message associated with the error number, call DTWAIN_GetErrorString.
TWAIN State Transitions None
Prerequisite Calls None.
See Also |