wxAutoExcel
2.0.0
|
Sets the new error reporting mode for wxAutoExcel, restores the previous error mode when going out of scope. More...
Public Member Functions | |
wxAutoExcelObjectErrorModeOverrider (unsigned newMode, bool supressLogging=false) | |
Sets the new error reporting mode for the lifetime of the object. More... | |
Sets the new error reporting mode for wxAutoExcel, restores the previous error mode when going out of scope.
wxAutoExcel::wxAutoExcelObjectErrorModeOverrider::wxAutoExcelObjectErrorModeOverrider | ( | unsigned | newMode, |
bool | supressLogging = false |
||
) |
Sets the new error reporting mode for the lifetime of the object.
If wxAutoExcel was compiled with WXAUTOEXCEL_SHOW_WXAUTOMATION_ERROR set to 1 (which is set by default in non-release builds), wxWidgets will still display errors produced in wxAutomationObject::Invoke(), unless you set supressLogging to true.
WARNING: When supressLogging is true, the error messages are supressed by creating a wxLogNull instance, meaning that NO wxLog* messages are going to be displayed. Therefore it is highly recommended to make its scope only around wxAutoExcel function call.