/[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 31 by torben, Sun Sep 3 10:10:19 2006 UTC
# Line 1  Line 1 
1  // h6-udlånssystemDlg.cpp : implementation file  /*
2  //   * Developed by Torben H. Nielsen
3     */
4    
5    
6  #include "stdafx.h"  #include "stdafx.h"
7  #include "h6-udlånssystem.h"  #include "h6-udlånssystem.h"
# Line 76  END_MESSAGE_MAP() Line 78  END_MESSAGE_MAP()
78  BOOL Ch6udlnssystemDlg::OnInitDialog()  BOOL Ch6udlnssystemDlg::OnInitDialog()
79  {  {
80          CDialog::OnInitDialog();          CDialog::OnInitDialog();
81            CWaitCursor wait;
82    
83          // Add "About..." menu item to system menu.          // Add "About..." menu item to system menu.
84    
# Line 107  BOOL Ch6udlnssystemDlg::OnInitDialog() Line 110  BOOL Ch6udlnssystemDlg::OnInitDialog()
110          m_tabs.SetCurSel(0);          m_tabs.SetCurSel(0);
111    
112    
113          DatabaseLayer *dbl = new DatabaseLayer;          try {
114          CommonStorage::Instance()->setDBLayer(dbl);                  DatabaseLayer *dbl = new DatabaseLayer;
115                    CommonStorage::Instance()->setDBLayer(dbl);
116            } catch (...) {
117                    MessageBox(CString("Could not establish connection to the database server\r\n") +
118                                       "Please contact your network administrator\r\n" +
119                                       "(This application shuts down automatically)");
120                    OnOK();
121            }
122    
123    
124          // TODO: Add extra initialization here          // TODO: Add extra initialization here

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

  ViewVC Help
Powered by ViewVC 1.1.20