PROGRESSCALLBACK2

#include "ltdoc2.h"

L_BOOL pEXT_CALLBACK YourFunction(pProgressData, pUserData)

pPROGRESSDATA2 pProgressData;

pointer to PROGRESSDATA2 structure

L_VOID * pUserData;

pointer to additional parameters

Reports the progress of a specific operation and offers the client an opportunity to cancel. The address of this callback is passed as an argument to the L_Doc2SetProgressCB function.

Parameter

Description

pProgressData

Pointer to a PROGRESSDATA2 structure that contains progress data for the current process.

pUserData

A void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the L_Doc2SetProgressCB function.)

 

Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function called periodically by the OCR engine.

To activate the progress callback function, call the L_Doc2SetProgressCB function.

Required DLLs and Libraries

LTDOC2

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:

L_Doc2SetProgressCB

Topics:

Starting and Shutting Down the Engine

 

OCR Functions: Callbacks

Example

For an example, refer to L_Doc2SetProgressCB.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Professional OCR C API Help