Functions | |
const _TCHAR * | LastErrorMsg () |
void | AssFunc (bool fOk, const _TCHAR *sz, const _TCHAR *szFile, int iLine) |
Display formatted message on failed assertion and exit. | |
void | MessageBoxF (HWND hWnd, const _TCHAR *szFmt, const _TCHAR *szCaption, UINT uType,...) |
A MessageBox() with printf() functionality. | |
void | OutputDebugStringF (const _TCHAR *szFmt,...) |
A OutputDebugString() with printf() functionality. |
Use asserts where you want to assert(sic!) a condition, and if it it's not ok, there's no use to continue execution. All Ass* 'functions' here will exit() after displaying a message - so this is for fatal errors, such as internal inconstencies, end of memory conditions, unexpected and un-manageable Win32-API returns etc.
Macros ASSCHK, ASSAPI and ASSPTR are used to actually call the function so as to get the correct file and line into the message produced.
|
Display formatted message on failed assertion and exit. If the an assertion fails, format and display a message instead before exiting.
Definition at line 58 of file AxPipeAssert.cpp. References _T, and MessageBoxF(). |
|
Get the 'raw' message definition from the system, based on LastError.
Definition at line 38 of file AxPipeAssert.cpp. |
|
A MessageBox() with printf() functionality. MessageBox() with printf() functionality
Definition at line 71 of file AxPipeAssert.cpp. References _TCHAR. Referenced by AssFunc(). |