找传奇、传世资源到传世资源站!

delphi7教程.pdf

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

delphi7教程from clipboard目 录第 1 章 Delphi 概述··················································································································· 11.1 Delphi 介绍··················································································································· 11.2 Delphi 7 的主要特性····································································································· 21.2.1 熟悉语言特性···································································································· 21.2.2 丰富的组件 ······································································································· 21.2.3 功能强大的数据库访问技术············································································· 31.2.4 便捷的 Internet 编程技术·················································································· 31.3 Delphi 7 的安装与卸载································································································· 31.3.1 Delphi 7 的安装································································································· 31.3.2 Delphi 7 的卸载································································································· 6第 2 章 Delphi 7 的集成开发环境····························································································· 82.1 集成开发环境中的窗口元素························································································ 82.1.1 对象编辑器 ······································································································· 82.1.2 工程管理器 ······································································································· 82.1.3 代码编辑器 ······································································································· 92.1.4 对象浏览器 ····································································································· 112.1.5 调试器············································································································· 112.2 集成开发环境中的操作界面······················································································ 132.2.1 主菜单············································································································· 132.2.2 工具栏············································································································· 182.2.3 组件面板 ········································································································· 192.3 定制集成开发环境 ····································································································· 192.3.1 定制编程环境·································································································· 192.3.2 定制代码编辑器······························································································ 202.3.3 定制工具栏 ····································································································· 202.3.4 定制组件面板·································································································· 212.3.5 定制窗口位置·································································································· 222.3.6 保存当前定制·································································································· 222.4 附属工具 ···················································································································· 232.4.1 Database Desktop····························································································· 232.4.2 数据库引擎(BDE Administrator)································································ 292.4.3 SQL Explorer ··································································································· 302.4.4 Data Pump ······································································································· 312.4.5 Image Editor ···································································································· 32 Delphi 7 程序设计与开发技术大全·2·2.5 使用帮助系统············································································································· 34第 3 章 应用程序框架············································································································· 353.1 创建一个简单的 Delphi 程序 ····················································································· 353.2 构成 Delphi 工程的文件····························································································· 383.2.1 工程文件(.dpr)···························································································· 383.2.2 单元文件(.pas)···························································································· 383.2.3 窗体文件(.dfm)··························································································· 403.2.4 资源文件(.res) ···························································································· 413.2.5 工程选项及桌面配置文件(.dof)································································· 423.2.6 中间编译单元(.dcu)···················································································· 423.2.7 备份文件(.~ pas)······················································································ 423.2.8 包文件(.dpk)······························································································· 423.3 Delphi 项目的框架类·································································································· 423.3.1 TForm 类 ········································································································· 433.3.2 TApplication 类································································································ 453.3.3 TScreen 类······································································································· 483.4 Delphi 的公共体系结构······························································································ 483.4.1 Delphi 固有的体系结构··················································································· 483.4.2 多文档应用程序······························································································ 493.4.3 数据库模块窗体······························································································ 503.4.4 网络模块窗体·································································································· 513.5 Delphi 工程的常见管理方法······················································································ 513.5.1 工程的目录结构······························································································ 513.5.2 专用单元存放公共代码 ·················································································· 523.5.3 管理多个工程·································································································· 52第 4 章 Object Pascal 语言······································································································· 534.1 语言基础 ···················································································································· 534.1.1 Object Pascal 语言编写环境············································································ 534.1.2 注释语句 ········································································································· 544.1.3 标识符············································································································· 544.1.4 保留字和指令字······························································································ 554.1.5 数据类型与定义变量 ······················································································ 564.1.6 Object Pascal 的运算符 ··················································································· 644.1.7 语句················································································································· 654.1.8 过程与函数 ····································································································· 694.1.9 规范化命名 ····································································································· 744.2 面向对象的特性········································································································· 754.2.1 类和对象 ········································································································· 754.2.2 类的定义 ········································································································· 754.2.3 类的封装 ········································································································· 76 目录·3·4.2.4 类的继承 ········································································································· 764.2.5 构造与析构 ····································································································· 774.2.6 方法················································································································· 804.2.7 多态性············································································································· 824.2.8 类运算符 ········································································································· 854.2.9 类方法和类引用······························································································ 874.3 结构化异常处理········································································································· 894.3.1 Try...Except 语句和 Try...Finally 语句 ····························································· 894.3.2 Raise 语句 ······································································································· 914.3.3 异常类············································································································· 924.4 方法与技巧················································································································· 924.4.1 设置代码模板·································································································· 924.4.2 设置提示信息·································································································· 93第 5 章 使用 VCL 组件编程···································································································· 945.1 可视化类库(VCL) ································································································· 945.1.1 VCL 类库结构································································································· 945.1.2 组件运行机制·································································································· 955.2 VCL 常用基类············································································································ 995.2.1 TPersistent 类··································································································· 995.2.2 TComponent 类································································································ 995.2.3 TControl 类···································································································· 1005.2.4 TWinControl 类 ····························································································· 1005.2.5 TGraphicControl 类 ······················································································· 1015.2.6 TCustomControl 类························································································ 1015.3 Delphi 组件··············································································································· 1025.3.1 Delphi 组件的优势························································································ 1025.3.2 组件的分类 ··································································································· 1025.3.3 组件的属性、事件和方法············································································· 1035.3.4 组件的基本操作···························································································· 1065.4 使用 Delphi 组件编程······························································································· 1075.4.1 示例功能 ······································································································· 1085.4.2 设置窗体 ······································································································· 1085.4.3 编写代码 ······································································································· 110第 6 章 常用 VCL 组件的使用······························································································ 1126.1 简单组件 ·················································································································· 1126.1.1 标签组件(TLabel)····················································································· 1126.1.2 按钮组件(TButton)··················································································· 1156.1.3 复选框组件(TCheckBox) ········································································· 1166.1.4 单选框组件(TRadioButton)······································································ 1176.1.5 下拉列表组件(TComboBox)···································································· 117 Delphi 7 程序设计与开发技术大全·4·6.1.6 窗格组件(TPanel)····················································································· 1206.1.7 滚动条组件(TScrollBar)··········································································· 1216.1.8 单选分组框组件(TRadioGroup)······························································· 1236.1.9 简单组件编程示例························································································ 1246.2 文本编辑组件··········································································································· 1266.2.1 单行编辑框组件(TEdit)············································································ 1276.2.2 多行编辑框组件(TMemo)········································································ 1296.2.3 RTF 编辑组件(TRichEdit)········································································ 1306.2.4 格式输入组件(TMaskEdit)······································································· 1316.2.5 文本编辑组件编程示例 ················································································ 1336.3 分组组件 ·················································································································· 1396.3.1 Tab 组件(TTabControl)············································································· 1396.3.2 多页组件(TPageControl) ·········································································· 1416.3.3 Tab 表组件(TTabSheet) ············································································ 1436.3.4 分组组件编程示例························································································ 1456.4 图形显示组件··········································································································· 1496.4.1 图像组件(TImage)···················································································· 1496.4.2 位图组件(TBitMap)·················································································· 1506.4.3 图形显示组件编程示例 ················································································ 1526.5 对话框组件··············································································································· 1536.5.1 打开对话框组件(TOpenDialog) ······························································· 1536.5.2 另存为对话框组件(TSaveDialog) ···························································· 1566.5.3 打开图像对话框组件(TOpenPictureDialog)············································· 1566.5.4 图像另存为对话框(TSavePictureDialog)·················································· 1576.5.5 字体对话框(TFontDialog)········································································ 1576.5.6 颜色对话框(TColorDialog) ······································································ 1586.5.7 打印对话框(TPrintDialog)········································································ 1596.5.8 打印设置对话框(TPrinterSetupDialog)····················································· 1606.5.9 查找对话框(TFindDialog)········································································ 1606.5.10 替换对话框(TReplaceDialog)································································· 1616.5.11 对话框组件编程示例 ·················································································· 162第 7 章 高级 VCL 组件 ········································································································· 1677.1 窗体组件 ·················································································································· 1677.1.1 表头组件(THeaderControl)······································································· 1677.1.2 状态栏组件(TStatusBar)··········································································· 1697.1.3 工具栏组件(TToolBar)············································································· 1717.1.4 酷栏组件(TCoolBar) ················································································ 1747.1.5 窗体组件编程实例························································································ 1757.2 菜单组件 ·················································································································· 1787.2.1 主菜单组件(TMainMenu)········································································· 178 目录·5·7.2.2 弹出菜单组件(TPopMenu)······································································· 1807.2.3 菜单组件编程示例························································································ 1827.3 表格组件 ·················································································································· 1867.3.1 自绘栅格组件(TDrawGrid) ······································································ 1867.3.2 字符串栅格组件(TStringGrid)·································································· 1897.3.3 表格显示组件编程示例 ················································································ 1897.4 列表组件 ·················································································································· 1937.4.1 列表框组件(TListBox) ············································································· 1937.4.2 动作列表组件(TActionList)······································································ 1967.4.3 图像列表组件(TImageList) ······································································ 1987.4.4 树型视图组件(TTreeView)······································································· 2037.4.5 列表视图组件(TListView)········································································ 2077.4.6 列表组件编程示例························································································ 2127.5 打印相关 ·················································································································· 2157.5.1 Quick Report 打印组件·················································································· 2157.5.2 Rave Report 打印组件··················································································· 217第 8 章 窗体编程··················································································································· 2188.1 窗体的分类··············································································································· 2188.1.1 SDI 窗体········································································································ 2188.1.2 MDI 窗体 ······································································································ 2198.1.3 MPI 窗体······································································································· 2228.2 窗体的基本属性、方法和事件 ················································································ 2228.2.1 窗体的基本属性···························································································· 2238.2.2 窗体的基本方法···························································································· 2268.2.3 窗体的基本事件···························································································· 2278.3 模式窗体与非模式窗体···························································································· 2308.3.1 模式窗体 ······································································································· 2308.3.2 非模式窗体 ··································································································· 2318.4 窗体示例 ·················································································································· 231第 9 章 事件处理··················································································································· 2349.1 事件的定义及作用 ··································································································· 2349.2 常用事件 ·················································································································· 2349.2.1 键盘事件 ······································································································· 2349.2.2 鼠标事件 ······································································································· 2359.3 拖曳事件 ·················································································································· 2359.4 事件编程示例··········································································································· 2379.4.1 检测是否按下 Shift、Alt 或 Ctrl 键 ······························································ 2379.4.2 模拟按下键盘上的某个键············································································· 2389.4.3 限制鼠标移动的范围 ···················································································· 2479.4.4 自定义鼠标 ··································································································· 248 Delphi 7 程序设计与开发技术大全·6·9.4.5 设置光标闪烁的速度 ···················································································· 2499.4.6 不同程序间的拖曳操作 ················································································ 251第 10 章 文件和路径处理 ····································································································· 25310.1 文件管理常用函数和过程······················································································ 25310.1.1 文件操作常用函数和过程··········································································· 25310.1.2 目录操作函数和过程 ·················································································· 25610.1.3 驱动器操作常用函数 ·················································································· 25910.2 各种文件类型的输入输出······················································································ 25910.2.1 文本文件 ····································································································· 26010.2.2 类型文件 ····································································································· 26110.2.3 无类型文件·································································································· 26310.3 映像内存的操作····································································································· 26410.3.1 映像内存函数······························································································ 26510.3.2 内存映像的步骤·························································································· 26610.3.3 内存映像示例······························································································ 26710.4 目录和驱动器········································································································· 27210.4.1 获取 System 目录 ························································································ 27210.4.2 获取 Windows 目录····················································································· 27310.4.3 获取当前目录······························································································ 27310.4.4 获取可用驱动器信息 ·················································································· 274第 11 章 GDI 和图像编程 ····································································································· 27611.1 Delphi 的绘图类 ····································································································· 27611.1.1 画布类(TCanvas)···················································································· 27611.1.2 画笔类(TPen)·························································································· 28211.1.3 画刷类(TBrush) ······················································································ 28511.1.4 颜色类(TColor)······················································································· 28611.2 画图程序················································································································· 28711.2.1 界面设计 ····································································································· 28711.2.2 代码设计 ····································································································· 29011.2.3 菜单设计 ····································································································· 29411.3 坐标系统和映射模式······························································································ 29711.3.1 设备坐标系·································································································· 29811.3.2 逻辑坐标系·································································································· 29811.3.3 屏幕坐标系·································································································· 29811.3.4 窗体坐标系·································································································· 29811.3.5 坐标映射 ····································································································· 29911.3.6 设置映射模式······························································································ 30011.3.7 设置窗口范围······························································································ 30011.3.8 映射模式示例······························································································ 30111.4 图像格式处理········································································································· 303 目录·7·11.5 GDI 字体················································································································· 30511.5.1 Win32 字体类型 ·························································································· 30511.5.2 基本字体元素······························································································ 30511.5.3 GDI 字体分类······························································································ 30611.5.4 显示不同字体······························································································ 30711.5.5 实际创建一种字体 ······················································································ 307第 12 章 多媒体技术············································································································· 31012.1 多媒体技术概述····································································································· 31012.1.1 MPC 标准···································································································· 31012.1.2 多媒体技术应用领域 ·················································································· 31012.1.3 开发多媒体应用程序的工具······································································· 31112.2 特殊显示效果········································································································· 31212.2.1 基本原理 ····································································································· 31312.2.2 使用 CopyRect 实现特效············································································· 31312.2.3 使用 BitBlt 实现特效 ·················································································· 31412.3 动画························································································································ 31912.3.1 文字动画 ····································································································· 31912.3.2 图像动画 ····································································································· 32012.4 音频与视频············································································································· 32212.4.1 WAV 与 MIDI 文件简介·············································································· 32212.4.2 AVI 文件格式······························································································ 32412.4.3 TMediaPlayer 组件的使用··········································································· 32512.5 MessageBeep( )函数································································································ 32812.6 PlaySound( )函数 ···································································································· 32912.7 mciSendString( )函数······························································································ 330第 13 章 消息处理技术 ········································································································· 33313.1 Windows 消息········································································································· 33313.1.1 了解消息 ····································································································· 33313.1.2 消息结构 ····································································································· 33313.1.3 消息类型 ····································································································· 33413.1.4 消息处理 ····································································································· 33513.1.5 应用程序的消息循环 ·················································································· 33813.2 Delphi 消息处理机制······························································································ 33913.2.1 消息处理函数······························································································ 33913.2.2 应用程序消息······························································································ 34013.3 发送消息················································································································· 34113.3.1 Perform()函数······························································································ 34113.3.2 SendMessage( )和 PostMessage( )函数 ························································ 34113.4 消息和事件············································································································· 34113.4.1 消息和事件的工作原理··············································································· 341 Delphi 7 程序设计与开发技术大全·8·13.4.2 消息与事件的对应关系··············································································· 34313.4.3 使用 Windows 消息处理 Delphi 没有的事件·············································· 34313.5 消息处理编程示例 ································································································· 346第 14 章 多线程编程············································································································· 34814.1 线程的基础知识····································································································· 34814.1.1 进程与线程关系·························································································· 34814.1.2 多线程应用条件·························································································· 34914.2 VCL 线程对象········································································································ 35114.2.1 TThread 类··································································································· 35114.2.2 线程函数 ····································································································· 35414.2.3 线程的挂起与继续······················································································ 35514.2.4 线程的终止与异常处理··············································································· 35614.3 管理多线程············································································································· 35714.3.1 线程同步技术······························································································ 35714.3.2 线程优先级·································································································· 35814.4 多线程示例············································································································· 365第 15 章 动态链接库和组件包······························································································ 37415.1 动态链接库概述····································································································· 37415.1.1 动态链接库的概念······················································································ 37415.1.2 Windows 系统的动态链接库······································································· 37415.1.3 动态链接与静态链接 ·················································································· 37515.1.4 DLL 和系统变量························································································· 37615.1.5 DLL 的入口点函数 ····················································································· 37615.1.6 DLL 和内存管理························································································· 37715.1.7 DLL 中的数据····························································································· 37715.1.8 DLL 中的异常和运行时错误······································································ 37715.2 创建和调用 DLL ···································································································· 37815.2.1 创建 DLL 的基本步骤················································································· 37815.2.2 调用 DLL····································································································· 38115.3 在 DLL 中封装窗体································································································ 38415.4 使用 DLL 共享数据································································································ 38615.4.1 内存映射文件的概念 ·················································································· 38615.4.2 与内存映射文件相关的函数······································································· 38715.4.3 使用内存映射文件在 DLL 中共享数据······················································ 38915.5 钩子函数················································································································· 39215.5.1 钩子链········································································································· 39215.5.2 钩子函数 ····································································································· 39215.5.3 钩子类型 ····································································································· 39215.5.4 与使用钩子相关的函数··············································································· 39415.5.5 使用钩子函数监测所有鼠标动作的实例···················································· 395 目录·9·15.6 包和 DLL················································································································ 39815.6.1 为什么使用包······························································································ 39915.6.2 与包有关的文件类型 ·················································································· 39915.6.3 运行时包 ····································································································· 39915.6.4 设计时包 ····································································································· 40115.6.5 创建和编辑包······························································································ 40315.6.6 配置包········································································································· 40715.6.7 包集合文件·································································································· 40815.6.8 使用包和 DLL····························································································· 409第 16 章 开发新的 VCL 组件································································································ 41116.1 开发组件简介········································································································· 41116.1.1 什么是组件·································································································· 41116.1.2 为什么使用组件·························································································· 41116.1.3 Delphi 的组件库基础 ·················································································· 41216.1.4 组件和类 ····································································································· 41716.1.5 开发组件的要求·························································································· 41716.1.6 如何选择新组件的基类··············································································· 41916.1.7 开发新组件的基本步骤··············································································· 42016.1.8 测试未安装的组件······················································································ 42316.1.9 测试已安装的组件······················································································ 42416.2 组件开发过程中的面向对象编程··········································································· 42416.2.1 定义新类 ····································································································· 42416.2.2 祖先、后代及类层次 ·················································································· 42516.2.3 访问控制 ····································································································· 42516.2.4 分派方式 ····································································································· 42616.2.5 抽象类成员·································································································· 42716.2.6 类和指针 ····································································································· 42816.3 创建属性················································································································· 42816.3.1 属性的类型·································································································· 42816.3.2 发布继承的属性·························································································· 42816.3.3 定义属性 ····································································································· 42816.3.4 存储和装载属性·························································································· 43216.4 创建事件················································································································· 43416.4.1 事件定义 ····································································································· 43416.4.2 怎样实现标准事件······················································································ 43616.4.3 定义新事件·································································································· 43716.5 创建方法················································································································· 43916.5.1 避免互相依赖······························································································ 43916.5.2 命名方法的惯例·························································································· 43916.5.3 保护方法 ····································································································· 440 Delphi 7 程序设计与开发技术大全·10·16.5.4 使方法变为虚方法······················································································ 44016.5.5 声明方法 ····································································································· 44016.6 在组件中使用图形 ································································································· 44016.6.1 VCL 的图形接口························································································· 44116.6.2 使用 Canvas································································································· 44116.6.3 使用图形工作······························································································ 44116.6.4 脱屏位图(Off-Screen Bitmap)································································· 44316.6.5 对变化作出反应·························································································· 44316.7 处理消息和系统通知······························································································ 44416.7.1 理解消息处理系统······················································································ 44416.7.2 改变消息处理方法······················································································ 44516.7.3 创建新的消息处理方法··············································································· 44616.8 使组件在设计阶段可用·························································································· 44816.8.1 注册组件 ····································································································· 44816.8.2 安装组件到组件面板 ·················································································· 45016.8.3 使组件的资源文件可用··············································································· 45216.8.4 为组件设置位图·························································································· 45316.8.5 为组件提供帮助·························································································· 45416.8.6 增加属性编辑器·························································································· 45416.8.7 加入组件编辑器·························································································· 45716.9 修改现存的组件:制作非自动换行的 Memo 组件 ··············································· 46016.9.1 创建并注册组件·························································································· 46016.9.2 修改组件类·································································································· 46116.10 开发图形组件:制作 Shape 图形组件 ································································· 46216.10.1 创建和注册组件························································································ 46216.10.2 发布继承的属性························································································ 46216.10.3 增加图形能力···························································································· 46316.11 开发窗口控件:制作 Calendar 组件····································································· 46816.11.1 创建并注册组件························································································ 46816.11.2 发布继承属性···························································································· 46916.11.3 改变初始值································································································ 47016.11.4 重定义单元格大小 ···················································································· 47016.11.5 填充单元格································································································ 47116.11.6 跟踪日期···································································································· 47216.11.7 导航月和年································································································ 47616.11.8 导航日期···································································································· 47616.12 开发数据感知控件:制作数据感知的 Calender 组件·········································· 47816.12.1 制作一个数据浏览控件············································································· 47816.12.2 制作一个数据编辑控件············································································· 48216.13 开发非可视组件:制作 Dialog 组件···································································· 486 目录·11·16.13.1 定义组件接口···························································································· 48616.13.2 创建和注册组件························································································ 48716.13.3 创建组件接口···························································································· 48716.13.4 测试对话框组件························································································ 488第 17 章 Delphi 两层数据库开发·························································································· 48917.1 数据库基础知识····································································································· 48917.1.1 数据库的出现和发展 ·················································································· 48917.1.2 数据库的组成······························································································ 49117.1.3 数据库系统模型·························································································· 49217.1.4 数据库的常用概念······················································································ 49417.1.5 目前流行的数据库介绍··············································································· 49517.1.6 数据库开发的一般方法··············································································· 49817.2 Delphi 的数据库体系结构······················································································ 50017.2.1 Delphi 数据库访问原理··············································································· 50017.2.2 Delphi 与其他数据库开发工具的比较························································ 50217.2.3 Delphi 的数据库开发优势··········································································· 50317.3 Delphi 支持的数据引擎·························································································· 50317.3.1 BDE 数据库引擎························································································· 50417.3.2 ADO 数据库引擎 ························································································ 50417.3.3 dbExpress 数据库引擎················································································· 50517.3.4 Interbase 数据库引擎··················································································· 50617.4 数据访问组件········································································································· 50617.4.1 数据库组件·································································································· 50717.4.2 数据库连接组件·························································································· 51217.4.3 数据集组件·································································································· 51317.4.4 数据源组件·································································································· 53517.5 数据感知组件········································································································· 53717.5.1 单行字符字段编辑框组件(TDBText)····················································· 53817.5.2 单行字段编辑框组件(TDBEdit)····························································· 54217.5.3 多行字段编辑框组件(TDBMemo)························································· 54517.5.4 图像字段组件(TDBImage)····································································· 55017.5.5 字段列表框组件(TDBListBox) ······························································ 55117.5.6 字段下拉列表框组件(TDBComboBox)·················································· 55417.5.7 参照字段列表框组件(TDBLookupListBox)··········································· 55517.5.8 参照字段下拉列表框组件(TDBLookupComboBox)······························ 55717.5.9 记录导航组件(TDBNavigator) ······························································· 55917.5.10 表格组件(TDBGrid) ············································································· 56317.6 Delphi 的其他支持 ································································································· 56917.6.1 DataPump ···································································································· 56917.6.2 DataDesktop································································································· 572 Delphi 7 程序设计与开发技术大全·12·17.6.3 BDE 配置工具····························································································· 58117.6.4 SQL Explorer 实用工具··············································································· 58217.7 如何连接数据库····································································································· 58417.7.1 BDE 方式连接 Access ················································································· 58417.7.2 ODBC 方式连接 Access ·············································································· 58417.7.3 ADO 方式连接 Access ················································································ 58817.7.4 连接文本文件······························································································ 59017.8 一些常用工具和数据字典的用法··········································································· 59117.8.1 SQL 监视器································································································· 59117.8.2 数据字典 ····································································································· 591第 18 章 客户/服务器编程 ···································································································· 59318.1 从桌面数据库到客户/服务器结构 ········································································· 59318.1.1 为什么要采用客户/服务器结构·································································· 59318.1.2 客户/服务器体系结构 ················································································· 59418.2 服务器端的设计开发······························································································ 59618.2.1 数据库对象·································································································· 59618.2.2 定义数据库表······························································································ 59618.2.3 使用域········································································································· 59818.2.4 定义视图、存储过程和触发器··································································· 59818.2.5 业务规则 ····································································································· 60318.2.6 数据库对象的访问权限··············································································· 60418.3 客户端使用 SQL 服务器 ························································································ 60518.3.1 连接 SQL 服务器 ························································································ 60518.3.2 获得 SQL 数据库信息················································································· 60818.3.3 查询数据库·································································································· 60818.3.4 数据库更新·································································································· 61318.3.5 执行存储过程······························································································ 614第 19 章 多层数据库应用程序的开发 ·················································································· 61919.1 多层体系结构和技术概述······················································································ 61919.1.1 多层体系结构概述······················································································ 61919.1.2 多层体系结构的优点 ·················································································· 62019.1.3 多层体系结构技术概述··············································································· 62219.2 客户端程序开发····································································································· 62819.2.1 客户端应用程序的结构··············································································· 62819.2.2 创建客户端应用程序的步骤······································································· 62819.2.3 连接应用服务器·························································································· 62919.2.4 管理应用服务器连接 ·················································································· 63119.2.5 处理约束和客户端的差错控制··································································· 63219.2.6 数据更新 ····································································································· 63219.3 服务器程序开发····································································································· 634 目录·13·19.3.1 创建应用服务器的步骤··············································································· 63419.3.2 创建及配置远程数据模块··········································································· 63619.3.3 建立 IProvider 接口····················································································· 63819.4 InternetExpress 扩展 ······························································································· 64019.4.1 XML Broker 组件························································································ 64019.4.2 TinetXPageProducer 组件 ············································································ 64419.5 支持 CORBA 和 MTS····························································································· 64519.5.1 CORBA ······································································································· 64519.5.2 MTS············································································································· 64619.6 Briefcase(公文包)程序······················································································· 648第 20 章 报表、图表和决策的支持 ······················································································ 65120.1 使用 QuickReport 组件创建报表············································································ 65120.1.1 安装 QReport 组件面板··············································································· 65120.1.2 QuickReport 组件介绍················································································· 65220.1.3 报表向导 ····································································································· 66020.2 使用 Rave 组件创建报表························································································ 66220.2.1 开发环境介绍······························································································ 66320.2.2 Rave 组件介绍····························································································· 66420.2.3 创建视图 ····································································································· 66620.2.4 创建报表 ····································································································· 66920.2.5 应用实例 ····································································································· 67220.3 TeeChart 图表组件·································································································· 67620.3.1 TeeChart 组件介绍 ······················································································ 67620.3.2 TeeChart 组件常用属性和方法 ··································································· 67620.3.3 TeeChart 组件的使用··················································································· 67720.3.4 Series 对象介绍··························································································· 67920.3.5 创建数据库图表·························································································· 68020.3.6 创建 QuickReport 图表················································································ 68220.3.7 使用 TeeChart 向导创建图表 ······································································ 68220.3.8 图表的预览,打印和导出··········································································· 68420.4 Decision Cube 决策组件························································································· 68520.4.1 Decision Cube 组件 ····················································································· 68520.4.2 Decision Query 组件···················································································· 68820.4.3 Decision Grid 组件······················································································· 68920.4.4 Decision Graph 组件···················································································· 69220.4.5 Decision Pivot 组件 ····················································································· 69420.4.6 DecisionSource 组件···················································································· 697第 21 章 从数据建模到系统开发·························································································· 69821.1 软件工程介绍········································································································· 69821.1.1 生命周期法·································································································· 698 Delphi 7 程序设计与开发技术大全·14·21.1.2 快速原型法·································································································· 70021.2 数据库的建立········································································································· 70221.2.1 需求分析 ····································································································· 70221.2.2 数据建模 ····································································································· 70321.2.3 设计规范化·································································································· 70421.2.4 自动化设计工具·························································································· 70421.3 设计用户端界面····································································································· 70521.3.1 用户界面设计的基本原则··········································································· 70521.3.2 Delphi 中用户界面设计··············································································· 70621.4 基于 ADO 两层结构的实现 ··················································································· 70721.5 使用多层结构的实现······························································································ 70821.5.1 基于 DataSnap 技术的多层数据库应用程序··············································· 70821.5.2 使用 Bussiness Broker Server 的多层数据库应用程序································ 70921.5.3 逻辑三层结构的数据库应用程序 ······························································· 70921.6 发布到 Web············································································································· 71021.7 “图书管理系统”示例·························································································· 71121.7.1 程序功能及总体结构设计··········································································· 71121.7.2 数据库设计·································································································· 71321.7.3 数据模块设计······························································································ 71321.7.4 用户登录模块的实现 ·················································································· 71421.7.5 图书馆管理系统功能的实现······································································· 71721.7.6 修改图书记录模块的实现··········································································· 71821.7.7 修改学生记录模块的实现··········································································· 72121.7.8 修改密码设置模块的实现··········································································· 72421.7.9 生成预约图书的报表 ·················································································· 72621.7.10 生成催还图书的报表 ················································································ 72821.7.11 图书馆服务系统功能的实现····································································· 73121.7.12 查询、借阅及预约图书············································································· 73321.7.13 查询个人借阅情况及归还图书································································· 74121.7.14 小结··········································································································· 746第 22 章 Internet 编程和 Indy 组件 ······················································································· 74722.1 WinSock 基础 ········································································································· 74722.1.1 TCP、UDP 和 IP ························································································· 74722.1.2 套接字(Socket)······················································································· 74822.1.3 客户/服务器模式························································································· 74922.1.4 面向连接的协议套接字的调用··································································· 75022.1.5 面向无连接协议的套接字的调用 ······························································· 75022.2 利用 Winsock API 实现 Socket 编程······································································· 75122.2.1 常用 WinSockAPI 函数 ··············································································· 75122.2.2 利用 WinSockAPI 实现 Socket 编程 ··························································· 754 目录·15·22.3 利用组件实现 Socket 编程····················································································· 76222.3.1 TClientSocket 组件······················································································ 76222.3.2 TServerSocket 组件 ····················································································· 76322.3.3 Indy 组件介绍 ····························································································· 76422.4 编程示例················································································································· 77222.4.1 远程抓屏示例······························································································ 77222.4.2 局域网聊天程序·························································································· 780

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复