資源簡介
利用MFC編寫一個簡單的帶界面的數據庫,要求至少能夠簡單地實現對數據的查找、修改、添加和刪除功能。
----------------------------------------------
僅供參考

代碼片段和文件信息
//?Database.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Database.h“
#include?“DatabaseDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDatabaseApp
BEGIN_MESSAGE_MAP(CDatabaseApp?CWinApp)
//{{AFX_MSG_MAP(CDatabaseApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CDatabaseApp?construction
CDatabaseApp::CDatabaseApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDatabaseApp?object
CDatabaseApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDatabaseApp?initialization
BOOL?CDatabaseApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CDatabaseDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????36888??2010-09-01?21:06??Databa
?????文件???????2211??2010-09-01?22:35??Databa
?????文件???????2091??2010-08-20?15:23??Databa
?????文件???????4318??2010-08-31?16:35??Databa
?????文件????????522??2010-08-20?15:23??Databa
?????文件???????1346??2010-08-20?15:23??Databa
?????文件??????50176??2010-09-01?22:35??Databa
?????文件??????54784??2010-09-01?22:35??Databa
?????文件????????558??2010-09-01?22:35??Databa
?????文件???????7077??2010-09-01?21:06??Databa
?????文件??????10986??2010-09-01?22:35??Databa
?????文件???????1680??2010-09-01?21:30??Databa
?????文件?????114759??2010-09-01?22:35??Databa
?????文件?????323096??2010-09-01?22:35??Databa
?????文件??????14837??2010-09-01?21:48??Databa
?????文件????5633608??2010-08-20?16:27??Databa
?????文件?????427008??2010-09-01?22:35??Databa
?????文件???????3456??2010-09-01?21:06??Databa
?????文件??????47448??2010-09-01?22:35??Databa
?????文件?????105859??2010-08-20?16:27??Databa
?????文件???????8710??2010-09-01?22:28??Databa
?????文件???????6134??2010-08-30?19:54??Databa
?????文件?????214016??2010-09-01?22:35??Databa
?????文件?????372736??2010-09-01?22:35??Databa
?????文件???????1388??2010-08-20?21:49??Databa
?????文件????????939??2010-08-20?21:49??Databa
?????文件???????1115??2010-08-20?22:00??Databa
?????文件????????834??2010-08-20?21:32??Databa
?????文件???????3615??2010-08-20?15:23??Databa
?????文件???????1078??2010-08-20?15:23??Databa
............此處省略13個文件信息
- 上一篇:MSER區域檢測可用的MSER
- 下一篇:MFC界面 約瑟夫環
評論
共有 條評論