转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 软件开发 >> Delphi程序 >> 正文
升级到Delphi 6 - 兼容性问题之一         ★★★★

升级到Delphi 6 - 兼容性问题之一

作者:闵涛 文章来源:闵涛的学习笔记 点击数:2008 更新时间:2009/4/23 18:44:10

升级到Delphi 6

原著:Borland Corporation

翻译:Musicwind®

日期:2001-07-11

声明:

以下文章的内容取自Delphi 6附带的帮助文件。

版权所有Borland Corporation

翻译此稿事先没有得到Borland的批准,鲁莽之处,希望Borland多多原谅。

 

 


总则

从Delphi 6中打开Delphi 5 (或更早版本)的工程,Delphi 会自动对其进行升级。以下将要介绍的是新版本中可能会对现有的Delphi工程带来潜在影响的一些改动。

IDE(集成开发环境)特性

       包名称的自动更新

       兼容性问题

想要了解更多其他信息,请参考”Delphi6新特性”这一部分的内容。

 

OverView

When you load a Delphi 5 or earlier project into Delphi 6, it is automatically updated. The following topics describe changes that could potentially impact existing Delphi projects:

IDE issues

Automatic package name updates

Compatibility issues

Refer also to the What’s New for information on additional features that you may want to incorporate into your applications.

 

兼容性问题

以下列出的是可能影响你的Delphi应用程序的几个大的方面:

 

Compatibility issues

Following are general compatibility issues that may affect your Delphi applications:

 

一.             由于VCL体系结构的变化而引起的Provider和Client Dataset 的一些事件的变动

 

TCustomClientDataSet的引入,使得Delphi 5或早期版本中的事件处理机制做些变动。

DBCLIENT.PAS单元中有5种类型的6个事件发生了变化,他们分别是:

 

事件类型                    变化

 


TResolverErrorEvent            影响到provider的 OnUpDateError 事件。

TBeforeUpdateRecordEvent   影响到provider的 BeforeUpdateRecord事件。

TAfterUpdateRecordEvent     影响到provider的 AfterUpdateRecord事件。

TProviderDataEvent             影响到provider的 OnGetData and OnUpdateData事件。

TReconcileErrorEvent           影响到client dataset的 OnReconcileError 事件。

 

必须将以上提到的这些事件对应的处理函数(过程)中的TClientDataSet替换为TCustomClientDataSet。

 

Provider, client dataset events affected by VCL hierarchy change

The introduction of TCustomClientDataSet requires changes to event handlers in Delphi 5 and earlier code.

Six events in five types are affected by the change to DBCLIENT.PAS. They are:

 

Type       Event                   change

 


TResolverErrorEvent            Affects the provider’s OnUpDateError event.

TBeforeUpdateRecordEvent   Affects the provider’s BeforeUpdateRecord event.

TAfterUpdateRecordEvent     Affects the provider’s AfterUpdateRecord event.

TProviderDataEvent             Affects the provider’s OnGetData and OnUpdateData events.

TReconcileErrorEvent           Affects the client dataset’s OnReconcileError event

 

In event handlers using the events noted above, you must replace TClientDataSet with TCustomClientDataSet.

 

二.             使用默认数据库登录的代码的变动

[1] [2]  下一页


[系统软件]BCB6 下devexpress 安装手记  [常用软件]Internet Explorer 6 Public Preview 最新出击!!
[常用软件]painter 6 手绘实例《油彩篇》  [常用软件]painter 6 手绘实例《粉彩篇》
[常用软件]Painter 6 手绘实例《胶彩篇》  [VB.NET程序]VB.NET实现DirectSound9 (6) 声音特效
[VB.NET程序]Visual Basic 6 逆向工程与反逆向工程 (2)  [VB.NET程序]Visual Basic 6 逆向工程与反逆向工程 (1)
[VB.NET程序]Vb 6 中的多态  [VB.NET程序]几个 WMI 的例子(初级) - 1
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · C语言系列  · VB.NET程序
    · JAVA开发  · Delphi程序
    · 脚本语言
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台