/[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 4 by torben, Wed Aug 30 08:01:57 2006 UTC revision 23 by torben, Fri Sep 1 02:42:38 2006 UTC
# Line 6  Line 6 
6  #include "h6-udlånssystemDlg.h"  #include "h6-udlånssystemDlg.h"
7  #include ".\h6-udlånssystemdlg.h"  #include ".\h6-udlånssystemdlg.h"
8    
9    #include "commonstorage.h"
10    #include "databaselayer.h"
11    
12  #ifdef _DEBUG  #ifdef _DEBUG
13  #define new DEBUG_NEW  #define new DEBUG_NEW
14  #endif  #endif
# Line 64  BEGIN_MESSAGE_MAP(Ch6udlnssystemDlg, CDi Line 67  BEGIN_MESSAGE_MAP(Ch6udlnssystemDlg, CDi
67          ON_WM_QUERYDRAGICON()          ON_WM_QUERYDRAGICON()
68          //}}AFX_MSG_MAP          //}}AFX_MSG_MAP
69          ON_COMMAND(ID_HELP_ABOUT, OnHelpAbout)          ON_COMMAND(ID_HELP_ABOUT, OnHelpAbout)
70            ON_COMMAND(ID_FILE_EXIT, OnFileExit)
71  END_MESSAGE_MAP()  END_MESSAGE_MAP()
72    
73    
# Line 102  BOOL Ch6udlnssystemDlg::OnInitDialog() Line 106  BOOL Ch6udlnssystemDlg::OnInitDialog()
106          m_tabs.Init();          m_tabs.Init();
107          m_tabs.SetCurSel(0);          m_tabs.SetCurSel(0);
108    
109    
110            try {
111                    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
122                    
123          return TRUE;  // return TRUE  unless you set the focus to a control          return TRUE;  // return TRUE  unless you set the focus to a control
# Line 160  void Ch6udlnssystemDlg::OnHelpAbout() Line 176  void Ch6udlnssystemDlg::OnHelpAbout()
176  {  {
177          MessageBox("DA6H :: Udlånssystem\r\nLavet af:\r\nKevin, Hedin & Torben");          MessageBox("DA6H :: Udlånssystem\r\nLavet af:\r\nKevin, Hedin & Torben");
178  }  }
179    
180    void Ch6udlnssystemDlg::OnFileExit()
181    {
182            // TODO: Add your command handler code here
183            OnOK();
184    }

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

  ViewVC Help
Powered by ViewVC 1.1.20