HC_Begin_Error_Handler_Search
-
void
HC_Begin_Error_Handler_Search() - void HC_Begin_Error_Handler_Search()
Finds all currently defined error handlers.
Begin_Error_Handler_Search() initiates the search.
Show_Error_Handler_Count() returns the number of error handlers found.
Find_Error_Handler() returns a function pointer, one at a time, to each of the registered error handlers.
End_Error_Handler_Search() terminates the search sequence.
Below is a code sample of how you might use these error handler search functions:
extern "C" { typedef void (*him_function)(HC_ANY_ARGS); } #define HIM_FUNCTION(function) (him_function)(function) ... HC_Begin_Error_Handler_Search(); { int count = 0; HC_Show_Error_Handler_Count(&count); void (*func)(HC_ANY_ARGS); while (HC_Find_Error_Handler(&func)) { if (HIM_FUNCTION(func) == HIM_FUNCTION(MyErrorHandler)) { AfxMessageBox(_T("Found my error handler!")); } } } HC_End_Error_Handler_Search();
HC_Define_Error_Handler