Header File
<owl/module.h>
Using:
1)
bool retval = CallSomeFunction();
if(retval == false){
TSystemMessage().MessageBox(window);
}
2)
uint32 retval = CallSomeFunction();
if(retval != NO_ERROR){
TSystemMessage(retval).MessageBox(0,0,"Error");
}
3)
if(!CallSomeFunction()){
if(TSystemMessage().MessageBox(window,"Continue?\n","System
Error",MB_YESNO) == IDNO)
return
false;
}
Constructors
TSystemMessage::TSystemMessage
Form 1
TSystemMessage();
Form 2
TSystemMessage(uint32
error, TLangId langId = LangNeutral);
Description
Form 1: Creates a TSystemMessage
with default error (GetLastError()) and default language
Form 2: Creates a TSystemMessage.
Public Member Functions
MessageBox
Syntax
int MessageBox(TWindow* wnd=0, LPCTSTR
msg=0, LPCTSTR title=0, uint flags=MB_OK);
Description
Display message box with formatted message
SysMessage
Syntax
const owl_string& SysMessage()
const;
Description
Return formatted error message
SysError
Syntax
const uint32 SysError() const;
Description
Return error