【正文】
版社,王晟著 《精彩C++ Builder6 程序設(shè)計(jì)》,科學(xué)出版社,吳逸賢著《C++ Builder應(yīng)用程序開發(fā)實(shí)例與技巧》,西安交通大學(xué)出版社,曹巖等著 《Visual C++教程》北京機(jī)械工業(yè)出版社。 學(xué)會(huì)了用ADO來操作與創(chuàng)建數(shù)據(jù)庫(kù) 通過這次課程設(shè)計(jì),對(duì)數(shù)據(jù)庫(kù)知識(shí)有了初步的認(rèn)識(shí)。細(xì)節(jié)問題:頭文件包含的順序。//{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.endif// !defined(AFX_STDAFX_H__B7A04679_274E_49A4_BE2C_DE7F27AD1443__INCLUDED_) 17 7測(cè)試結(jié)果及運(yùn)行界面 進(jìn)入系統(tǒng) 18 建立新用戶時(shí),若兩次輸入密碼不同會(huì)彈出警告 在登錄界面中輸入錯(cuò)誤的用戶名或者密碼時(shí),彈出警告框 19 當(dāng)用戶名和密碼都正確時(shí),進(jìn)入主界面 在添加菜單中,輸入的數(shù)據(jù)不能為空,否則彈出警告 當(dāng)未選擇所要?jiǎng)h除的記錄時(shí),彈出警告框 20 當(dāng)為選擇所要修改的記錄時(shí),彈出警告框 退出程序時(shí),談出對(duì)話框 218總結(jié) 最終的系統(tǒng)完成了哪些功能,與初期設(shè)計(jì)還有哪些差距或未完成的內(nèi)容。 // MFC support for Windows Common Controls endif // _AFX_NO_AFXCMN_SUPPORTinclude amp。 // MFC Automation classesinclude amp。 // MFC core and standard ponents include amp。}}成員變量信息: // : include file for standard system include files,// or project specific include files that are used frequently, but// are changed infrequentlyif !defined(AFX_STDAFX_H__B7A04679_274E_49A4_BE2C_DE7F27AD1443__INCLUDED_)defineAFX_STDAFX_H__B7A04679_274E_49A4_BE2C_DE7F27AD1443__INCLUDED_if _MSC_VER amp。Homeamp。,atol(m_age))。quot。(pos)。amp。quot。()。(AFX_DAO_USE_DEFAULT_TYPE,amp。溫情提示amp。(i,4,m_home)。quot。quot。quot。(amp。quot。quot。信息不能為空!amp。m_age=(pos,2)。(i,4,Shome)。quot。quot。varphone=(amp。Nameamp。,0)。COleVariant varage,varphone,varhome。數(shù)據(jù)庫(kù)已建立成功!amp。CString sqlcmd=amp。 // return TRUE unless you set the focus to a control }通過ADO創(chuàng)建學(xué)生信息數(shù)據(jù)庫(kù)void DIALOG3::readDb(){CString Filepath=amp。,LVCFMT_LEFT,200,3)。quot。quot。)。}else//如果輸入的名字和數(shù)據(jù)庫(kù)里的一致,這提示存在該用戶 {MessageBox(amp。用戶注冊(cè)成功!amp。(amp。)。溫情提示amp。)。quot。quot。return。quot。,amp。 }9 if((m_logname)==0amp。,MB_ICONQUESTION|MB_YESNO ))DestroyWindow()。}退出系統(tǒng)void CMyDlg::OnButton2(){if(IDYES==MessageBox(amp。amp。dc)。}else{// 給窗體添加背景CPaintDC dc(this)。int cyIcon = GetSystemMetrics(SM_CYICON)。 m_pMainWnd = amp。quot。wzhamp。,0)。CREATE TABLE DataTable(NameVARCHAR(20),Psw VARCHAR(20))amp。CDaoRecordset Dbset(amp。CDaoDatabase db。amp。開發(fā)工具:Visual C++ 、Access 2010。主要數(shù)據(jù)類型包括:CString類型數(shù)據(jù)、double類型數(shù)據(jù)、int類型數(shù)據(jù)和CTime類型數(shù)據(jù)。 2需求分析系統(tǒng)需要處理哪些數(shù)據(jù)總體分為用戶輸入的數(shù)據(jù)和從數(shù)據(jù)庫(kù)中獲得的數(shù)據(jù)。:系統(tǒng)支持:Windows 7等。quot。endif// CMyAppBEGIN_MESSAGE_MAP(CMyApp, CWinApp)//{{AFX_MSG_MAP(CMyApp)// NOTE the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code!//}}AFX_MSG5 ON_COMMAND(ID_HELP, CWinApp::OnHelp)END_MESSAGE_MAP()///