【正文】
//////////////////////////////////////////////////////////////////////////// CMyApp constructionCMyApp::CMyApp(){// TODO: add construction code here,// Place all significant initialization in InitInstance}// The one and only CMyApp objectCMyApp theApp。quot。quot。quot。quot。,_variant_t(amp。 }//建立數(shù)據(jù)庫文件,設(shè)置初始化賬號 CMyDlg dlg。7 // Center icon in client rectangleint cxIcon = GetSystemMetrics(SM_CXICON)。// Draw the icon(x, y, m_hIcon)。amp。//取得bmpBackground中圖片的信息,放在bitmap所指的指針中CBitmap* pbmpPri = (amp。()。quot。return。quot。}else{MessageBox(amp。)。amp。(AFX_DAO_USE_DEFAULT_TYPE,amp。quot。quot。quot。,_variant_t(m_regname))。quot。CDialog::OnOK()。quot。學(xué)號amp。//添加姓名項 (2,amp。quot。//在初始化函數(shù)中,如果沒有找到數(shù)據(jù)庫文件就創(chuàng)建,并且在列表中顯示出來return TRUE。if(!flag)//如果沒有,就創(chuàng)建{(Filepath)。quot。}_variant_t varnum,varname。quot。quot。)。Homeamp。//分別將數(shù)據(jù)庫里面讀出來的文件轉(zhuǎn)換成CString(i,amp。(i,3,Sphone)。m_name=(pos,1)。quot。}else{CString Filepath=amp。SELECT * FROM DataTableamp。,_variant_t(m_num))。Nameamp。(amp。//并關(guān)閉(i,amp。14 (i,3,m_phone)。quot。(Filepath)。//刪除數(shù)據(jù)()。請先選擇需要修改的行!amp。quot。,0)。(amp。quot。quot。readDb()。gt。gt。gt。gt。在技術(shù)上或沒用過或沒學(xué)過,需要邊做邊學(xué)習(xí)!如MFC中對各種類和控件的操作還不熟練。理論永遠代替不了實踐。在這次課程設(shè)計中遇到了很多問題,對虧了同學(xué)和老師的幫助得以完成謝謝老師和同學(xué)的幫助。為了完善學(xué)生信息管理系統(tǒng)的功能我22 走進圖書館,翻閱了大量關(guān)于數(shù)據(jù)庫的資料,并從互聯(lián)網(wǎng)上學(xué)到很多知識。ADO數(shù)據(jù)庫的相關(guān)操作和數(shù)據(jù)類型的相關(guān)轉(zhuǎn)換問題等 通過這次課程設(shè)計,對MFC有了更深的認識,對MFC控件有了更深刻理解。 課設(shè)過程中遇到的棘手問題及難點所在。gt。gt。gt。gt。()。Phoneamp。,_variant_t(m_name))。quot。(AFX_DAO_USE_DEFAULT_TYPE,amp。溫情提示amp。//最后兩句的作用是刷新列表}}修改void DIALOG3::Onmodify(){UpdateData(true)。quot。 }else{CString Filepath=amp。quot。)。,atol(m_phone))。quot。quot。//在記錄集的隊尾添加(amp。int i=()。quot。UpdateData(false)。}()。)。Sname=(LPCSTR)_bstr_t(varname)。quot。varage=(amp。Numamp。(Filepath)。quot。quot。quot。宿舍amp。,LVCFMT_LEFT,100,2)。quot。}11 初始化窗口BOOL DIALOG3::OnInitDialog(){CDialog::OnInitDialog()。quot。quot。quot。//將新數(shù)據(jù)代替舊數(shù)據(jù)(amp。return。quot。,0)。CDaoRecordset Dbset(amp。} 取消void DIALOGREG::OnRegcancle(){CDialog::OnCancel()。,amp。quot。amp。quot。quot。amp。BITMAP bitmap。amp。amp。 int nResponse = ()。))。(amp。quot。(sqlcmd)。CFileFind Ffind。 // Call this when using MFC in a shared DLL elseEnable3dControlsStatic()。quot。quot。 建立變量Sname,Spsw,通過格式變幻,將CString格式轉(zhuǎn)換成數(shù)據(jù)庫規(guī)定的格式 通過pare函數(shù)將輸入的用戶名與密碼與數(shù)據(jù)庫比較先判定輸入框里的名字在數(shù)據(jù)庫里不存在,然后將輸入的信息替換入數(shù)據(jù)庫,包含姓名,學(xué)號,年齡等基本信息錄入框,如果要添加記錄和已有記錄不沖突就會把錄入信息添加到新建 Microsoft Office Access 應(yīng)用程序記錄集中。 目錄1緒論 ....................................................... 1 .................................................. 1 .................................................. 1 ........................