--- h6-udlÃ¥nssystemDlg.cpp 2006/09/03 09:19:06 30 +++ h6-udlÃ¥nssystemDlg.cpp 2006/09/05 12:50:38 41 @@ -1,5 +1,7 @@ -// h6-udlånssystemDlg.cpp : implementation file -// +/* + * Developed by Torben H. Nielsen + */ + #include "stdafx.h" #include "h6-udlånssystem.h" @@ -8,6 +10,8 @@ #include "commonstorage.h" #include "databaselayer.h" +#include "microsoftdblayer.h" +#include "mysqllayer.h" #ifdef _DEBUG #define new DEBUG_NEW @@ -109,7 +113,8 @@ try { - DatabaseLayer *dbl = new DatabaseLayer; + //DatabaseLayer *dbl = new DatabaseLayer; + DatabaseLayer *dbl = new MySQLLayer; CommonStorage::Instance()->setDBLayer(dbl); } catch (...) { MessageBox(CString("Could not establish connection to the database server\r\n") + @@ -175,7 +180,8 @@ void Ch6udlnssystemDlg::OnHelpAbout() { - MessageBox("DA6H :: Udlånssystem\r\nLavet af:\r\nKevin, Hedin & Torben"); + CAboutDlg about; + about.DoModal(); } void Ch6udlnssystemDlg::OnFileExit()