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" |
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 |
|
|
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 |