/[H6]/h6-udlånssystemDlg.cpp
ViewVC logotype

Diff of /h6-udlånssystemDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by torben, Wed Aug 30 21:57:57 2006 UTC revision 23 by torben, Fri Sep 1 02:42:38 2006 UTC
# Line 107  BOOL Ch6udlnssystemDlg::OnInitDialog() Line 107  BOOL Ch6udlnssystemDlg::OnInitDialog()
107          m_tabs.SetCurSel(0);          m_tabs.SetCurSel(0);
108    
109    
110          DatabaseLayer *dbl = new DatabaseLayer;          try {
111          CommonStorage::Instance()->setDBLayer(dbl);                  DatabaseLayer *dbl = new DatabaseLayer;
112                    CommonStorage::Instance()->setDBLayer(dbl);
113            } catch (...) {
114                    MessageBox(CString("Could not establish connection to the database server\r\n") +
115                                       "Please contact your network administrator\r\n" +
116                                       "(This application shuts down automatically)");
117                    OnOK();
118            }
119    
120    
121          // TODO: Add extra initialization here          // TODO: Add extra initialization here

Legend:
Removed from v.9  
changed lines
  Added in v.23

  ViewVC Help
Powered by ViewVC 1.1.20