/[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 30 by torben, Sun Sep 3 09:19:06 2006 UTC
# Line 76  END_MESSAGE_MAP() Line 76  END_MESSAGE_MAP()
76  BOOL Ch6udlnssystemDlg::OnInitDialog()  BOOL Ch6udlnssystemDlg::OnInitDialog()
77  {  {
78          CDialog::OnInitDialog();          CDialog::OnInitDialog();
79            CWaitCursor wait;
80    
81          // Add "About..." menu item to system menu.          // Add "About..." menu item to system menu.
82    
# Line 107  BOOL Ch6udlnssystemDlg::OnInitDialog() Line 108  BOOL Ch6udlnssystemDlg::OnInitDialog()
108          m_tabs.SetCurSel(0);          m_tabs.SetCurSel(0);
109    
110    
111          DatabaseLayer *dbl = new DatabaseLayer;          try {
112          CommonStorage::Instance()->setDBLayer(dbl);                  DatabaseLayer *dbl = new DatabaseLayer;
113                    CommonStorage::Instance()->setDBLayer(dbl);
114            } catch (...) {
115                    MessageBox(CString("Could not establish connection to the database server\r\n") +
116                                       "Please contact your network administrator\r\n" +
117                                       "(This application shuts down automatically)");
118                    OnOK();
119            }
120    
121    
122          // TODO: Add extra initialization here          // TODO: Add extra initialization here

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

  ViewVC Help
Powered by ViewVC 1.1.20