--- h6-udlÃ¥nssystemDlg.cpp 2006/09/06 20:27:24 47 +++ h6-udlÃ¥nssystemDlg.cpp 2006/09/12 17:48:20 57 @@ -120,6 +120,7 @@ } catch(...) { MessageBox("Could not open config file"); OnOK(); + return true; } try { @@ -137,12 +138,21 @@ OnOK(); } CommonStorage::Instance()->setDBLayer(dbl); - } catch (...) { + } catch (CDBException *ex) { MessageBox(CString("Could not establish connection to the database server\r\n") + - "Please contact your network administrator"); + "Please contact your network administrator\r\n\r\n" + + "ODBC Returned the following message:\r\n" + + ex->m_strError); + + OnOK(); + } catch (...) { + MessageBox("Unknown DB exception"); OnOK(); } + CString title = "H6-Udlånssystem - "; + title += config.driver; + SetWindowText(title); // TODO: Add extra initialization here