PUBLIC BOOL UserPrint (HTRequest * request, HTAlertOpcode op, int msgnum, const char * dfault, void * input, HTAlertPar * reply) { char * msg = HTDialog_errorMessage(request, op, msgnum, dfault, input); if (msg) { AfxMessageBox( msg, MB_OK | MB_ICONEXCLAMATION ); HT_FREE(msg); } return YES; }
/* HTError_print ** ------------- ** Default function that creates an error message using HTAlert() to ** put out the contents of the error_stack messages. Furthermore, the ** error_info structure contains a name of a help file that might be put ** up as a link. This file can then be multi-linguistic. */ PUBLIC BOOL HTError_print (HTRequest * request, HTAlertOpcode op, int msgnum, const char * dfault, void * input, HTAlertPar * reply) { char * msg = HTDialog_errorMessage(request, op, msgnum, dfault, input); if (msg) { HTPrint("%s\n", msg); HT_FREE(msg); } return YES; }