C++ (Qt) if ( !q.exec(strSQL) ) { QMessageBox::critical(this, tr("Error!"), tr("Error in check!"), QMessageBox::Ok); }