register callback func to be exec from inside c VM harbour
Posted: Sun May 28, 2023 9:18 pm
Hello everyone;
I'm looking to register a callback function so that I may show some message while something is happening inside a VM c harbour function. For example to show a progress bar while the Harbour VM c function is inside a for loop.
For example:
Then have the c Wrapper TOCRFromScanner receive and execute ShowProgress inside the for loop.
Any ideas?
Thank you.
I'm looking to register a callback function so that I may show some message while something is happening inside a VM c harbour function. For example to show a progress bar while the Harbour VM c function is inside a for loop.
For example:
Code: Select all | Expand
#define CLAIMKEY_REGEX "CL[1-2][0-9]-[0-9]{8}"
//----------------------------------------------------------------------------//
METHOD FetchFromScanner() CLASS TBatchPayments
Local cText := TOCRFromScanner( {|n| ::ShowProgress(n) } )
Local aOCRClaimKeys := {}
Local aClaimKeys
Any ideas?
Thank you.