LTwain::SaveErrorCallBack

#include "ltwrappr.h"

virtual L_INT LTwain::SaveErrorCallBack (pCapability, uError)

pTW_CAPABILITY pCapability;

/* pointer to a structure */

L_UINT uError;

/* error code */

Called by LTwain::TemplateDlg when an error occurs while saving capability data supported by a particular TWAIN source to a specific template file.

Parameter

Description

pCapability

Pointer to the TW_CAPABILITY structure that references the capability data that was being saved to a specific template file when the error occurred. For more information about TW_CAPABILITY, refer to the TWAIN 1.9 specification from the site http://www.twain.org/.

uError

Error code.

Returns

SUCCESS

The function was successful.

SUCCESS_RETRY

Retry saving the capability value.

SUCCESS_ABORT

Abort the saving procedure.

SUCCESS_DELETE

Abort saving procedure and delete the file.

Comments

This callback function will be enabled only if you enabled the callback functions by calling LBase::EnableCallBack(TRUE).

The user should not free the pointer to the TW_CAPABILITY structure within this callback.

Required DLLs and Libraries

LTTWN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LTwain::TemplateDlg.

Topics:

TWAIN Functionality: Callback Functions.

Example

For an example, refer to LTwain::TemplateDlg.