ccError |
09/23/99 |
Author:
Daniel.Lindh@Home.se ICQ: 7983755 HOMEPAGE: home.bip.net/CyberCow Copyright © Cyber Cow 1995 - 1999. |
Overview |
#include <ccError.h> Hierarchy Chart
|
Class Members | ||||||||||
Data Items: Private:
Construction Public:
Input/Output Public:
Properties Public:
|
ccError::ccError | ||||||||
void ccError( BOOL abEnableLogging = FALSE, BOOL abAppend = TRUE , const char *asFileName = "ccError.err" ); Return Value:
Arguments:
Remarks: This member will create the ccErrorHandler object. It will also enable the error window ( enableErrorWnd() ). Example: ccErrorHandler oErrorHandler; |
ccError::error | ||||||||||||||||||
int error(
E_ERROR_TYPE aiErrorMode = -1, int error(
CString asErrorMessage = ""
}; Return Value:
Arguments:
Remarks: This function will dispaly an error message on the screen. Log the message to a file if the enableLogging has been called. The function have two interfaces, one who takes string text from string tables. And one that takes the text direct from the arguments. Example: ccError oError; oError.error( CCEM_ERROR_MESSAGE, IDS_WANT_TO_DELETE_FILE, NULL, NULL, MB_YESNO == IDYES ) ... |
ccError::enableErrorWnd | ||||
void enableErrorWnd( BOOL abEnable = TRUE) Return Value:
Arguments:
Remarks: Handles if the Error window should be displayed when error is called. Example: ccError oError; oError.enableErrorWnd(); |