| ELZED | Documentation | The Details | API |
| lzSetErrorCallbackThe lzSetErrorCallback function identifies the host function to be called in the event of an error in the current context. bool lzSetErrorCallback( | ErrorFunction pErrorFunction | | // pointer to the host error function |
);
ParameterspErrorFunction | | The address of the host error function to be called in the current context. |
Return Value | Returns TRUE if the error callback function is set. Returns FALSE if the function is not set. |
Remarks | Note that each context may have its own error function. There is no direct way to set an error function for all contexts. You may, however, use the same host error function to service multiple contexts.
While your error function can do whatever you see fit, it must have this prototype:
ELZED_API void ELZED_CALL_TYPE YourErrorFunction( long )
The parameter passed to the function is the current error code.
The error callback function for a given context is cleared using lzClearErrorCallback. |
Versions | Introduced in Elzed 1.0.0 | | This page describes the version of lzSetErrorCallback active in Elzed 2.5.0 (97: 2.5.0) |
See Also |
| |