138 |
OnOK(); |
OnOK(); |
139 |
} |
} |
140 |
CommonStorage::Instance()->setDBLayer(dbl); |
CommonStorage::Instance()->setDBLayer(dbl); |
141 |
} catch (...) { |
} catch (CDBException *ex) { |
142 |
MessageBox(CString("Could not establish connection to the database server\r\n") + |
MessageBox(CString("Could not establish connection to the database server\r\n") + |
143 |
"Please contact your network administrator"); |
"Please contact your network administrator\r\n\r\n" + |
144 |
|
"ODBC Returned the following message:\r\n" + |
145 |
|
ex->m_strError); |
146 |
|
|
147 |
|
OnOK(); |
148 |
|
} catch (...) { |
149 |
|
MessageBox("Unknown DB exception"); |
150 |
OnOK(); |
OnOK(); |
151 |
} |
} |
152 |
|
|