【正文】
missed 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。dlg。 m_pMainWnd = amp。6 } ()。()。quot。quot。quot。quot。))。wzhamp。,_variant_t(amp。Nameamp。(amp。,0)。SELECT * FROM DataTableamp。(AFX_DAO_USE_DEFAULT_TYPE,amp。(Filepath)。CREATE TABLE DataTable(NameVARCHAR(20),Psw VARCHAR(20))amp。if(!flag)//如果沒有就創(chuàng)建{CString sqlcmd=amp。//先看看存不存在數(shù)據(jù)庫文件BOOL flag=(Filepath)。db)。CDaoRecordset Dbset(amp。amp。 // Call this when linking to MFC statically endif//這里就是程序入口,在這里添加數(shù)據(jù)庫檢查代碼CString Filepath=amp。// 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 _AFXDLLEnable3dControls()。CDaoDatabase db。ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。amp。include amp。amp。include amp。amp。Data(學(xué)生通訊表)Database(管理登錄表) 46關(guān)鍵源程序 ,通過ADO創(chuàng)建登陸數(shù)據(jù)庫 // : Defines the class behaviors for the application. include amp。開發(fā)工具:Visual C++ 、Access 2010。運行前安裝Visual C++ 。對已經(jīng)錄入的學(xué)生信息進行修改 將已選中的記錄從記錄集中去除。在新建學(xué)生信息數(shù)據(jù)庫中錄入學(xué)生信息。主要數(shù)據(jù)類型包括:CString類型數(shù)據(jù)、double類型數(shù)據(jù)、int類型數(shù)據(jù)和CTime類型數(shù)據(jù)。主要包括:用戶的登陸于注冊,對學(xué)生信息的增加刪除修改。 目錄1緒論 ....................................................... 1 .................................................. 1 .................................................. 1 .................................................. 12需求分析 .......................................... 1 .................................................. 1 .................................................. 13概要設(shè)計 .......................................... 2 .......................................... 24詳細設(shè)計 .......................................... 2 .............................................. 2 ........................................ 3 ............................................ 35用戶使用說明 ...................................... 4 .............................................. 4 ........................................ 46關(guān)鍵源程序 ........................................ 5 .................................................. 5 ..................................................... 5 ..................................................... 9 .................................................... 127測試結(jié)果及運行界面 ............................... 18