【正文】
1 摘 要 隨著計(jì)算機(jī)及網(wǎng)絡(luò)技術(shù)的不斷發(fā)展,圖片資源采用先進(jìn)的數(shù)據(jù)庫技術(shù)進(jìn)行整理、保存和檢索,并利用便捷的網(wǎng)絡(luò)技術(shù)進(jìn)行發(fā)布和傳播成為其在教學(xué)和研究應(yīng)用方面的主流趨勢。 本文通過開發(fā)一個(gè)小型軟件圖片數(shù)據(jù)庫管理系統(tǒng),實(shí)現(xiàn)了 Visual Basic 和 Access 數(shù)據(jù)庫的 DAO 連接,實(shí)現(xiàn)了簡單的數(shù)據(jù)庫編程 ???。 本系統(tǒng)使用 VB 的 DAO 技術(shù)( Data Access Object)實(shí)現(xiàn)數(shù)據(jù)庫的連接與管理, 以此 來管理圖片。 論文主要部分分為六部分。第一章和第二章介紹了設(shè)計(jì)思想和設(shè)計(jì)工具的簡介;第三章確定系 統(tǒng)的需求分析;第四章總體設(shè)計(jì)系統(tǒng);第五章詳細(xì)設(shè)計(jì)和編碼;第六章總結(jié)設(shè)計(jì)的結(jié)果,指出優(yōu)點(diǎn)和不足。對(duì)本次開發(fā)作一總結(jié)。 本軟件通過數(shù)據(jù)庫管理圖片,將圖片壓縮存儲(chǔ)在數(shù)據(jù)庫中。通過使用本程序,可以方便的查詢、添加、刪除圖片 ,實(shí)現(xiàn)方便、快捷、合理的管理圖片。 關(guān)鍵詞:管理圖片、管理系統(tǒng)、 DAO、 Visual 2 Abstract Along with fast the development of puter and the inter,the source of the pictures uses the advanced Database technology to edit 、 save and search pictures , and using convenient inter’s technology to announce and to spread is made to major tendency in education and study field。 To achieve Visual Basic connecting to access by DAO, we developed a mini software named Pictures Database Management System。 The system uses DAO technology which bound with VB , to achieve Database’s connecting and management, so as to manage pictures。 The thesis makes up of six parts。 The first chapter and the second introduced the development idea and designing tools。The third chapter made an analysis to the system’s needs。 The forth chapter designed system overall。 The fifth chapter made a particular design and then coded。 The sixth chapter summarized the development。 The software manages pictures through Database, it pacts pictures then saves pictures。 By this software it makes easy to search 、 edit 、 delete pictures , and it manages pictures convenient、 fast、 reasonable。 Key Words: manage pictures, management system, DAO, Visual 。 3 目 錄 摘 要 ................................................................................................... 1 Abstract ................................................................................................. 2 目 錄 ................................................................................................... 3 第一章 引言 ....................................................................................... 5 1. 1 設(shè)計(jì)思想 ...................................................................................... 5 1. 2 開發(fā)工具以及環(huán)境 ...................................................................... 6 第二章 數(shù)據(jù)庫和開發(fā)語言 ................................................................. 7 2. 1 數(shù)據(jù)庫簡介 .................................................................................. 7 2. 2VB 簡介 ........................................................................................ 8 第三章 系統(tǒng)需求分析 ....................................................................... 12 3. 1 需求分析 .................................................................................... 13 3. 2 功能需求 .................................................................................... 13 3. 3 開發(fā)環(huán)境 .................................................................................... 14 第四章 總體分析與設(shè)計(jì) ................................................................. 15 4. 1 系統(tǒng)分析 .................................................................................... 15 4. 2 系統(tǒng)流程圖 ................................................................................ 16 4. 3 數(shù)據(jù)庫設(shè)計(jì) ................................................................................ 17 第五章 詳細(xì)設(shè)計(jì)和編碼 ................................................................... 19 5. 1 工程設(shè)計(jì) .................................................................................... 19 5. 1. 1 工程 pact_DB........................................................ 19 5. 1. 2 工程 Thumb_DB.......................................................... 20 5. 2 模塊設(shè)計(jì) .................................................................................... 20 5. 2. 1 聲明 API 函數(shù) ............................................................. 20 4 5. 2. 2 全局變量和常量聲明 .................................................. 22 5. 2. 3 一個(gè)全局函數(shù) .............................................................. 23 5. 3 用戶自定義控件 ........................................................................ 23 5. 3. 1ucGraphicButton 控件 .................................................. 23 5. 3. 2ucPicScroll 控件 ........................................................... 25 5. 4 窗體設(shè)計(jì) .................................................................................... 26 5. 4. 1frmCompact_DB 窗體 .................................................. 26 5. 4. 2frmMain 窗體 ............................................................... 26 5. 4. 3frmAddToDb 窗體 ........................................................ 29 5. 4. 4frmComments 窗體 ....................................................... 33 5. 4. 5frmDB 窗體 .................................................................. 33 5. 4. 6frmFull 窗體 ................................................................. 34 窗體 ..................................................................... 36 4. 5 編碼實(shí)現(xiàn) .................................................................................... 37 第六