中国程序员联盟 正在重新改版中ing 不便之处还请见谅 改版后将内容涉及java delphi .net php
 
  首页 | 数据库开发 | 网络通讯 | 多线程 | 多媒体开发 | 图像处理 | 程序人生 | 系统函数 | 控件开发 | Web服务
 
  当前位置:笨鱼delphi技术网>控件开发>控件使用>文章内容

delphi 如何将D5组件升到D6

来源:国外 关于:Vassilis Perantzakis 发布时间:2007-07-21   [收藏] [推荐]
Have you tried to compile your components, or 3rd party components you have in Delphi 5 into Delphi 6?
99% of them will not compile. However do not despare. It is only because of a few changes Borland has implemented on their latest product. This article covers the major changes.
Answer:
First of all, you will discover that the unit dsgnintf.pas is missing. Borland changed the name to Designintf.pas, moved the property editor code to a new unit, called DesignEditors.pas, put the constants used inside DesignConsts.pas and the menus inside DesignMenus.pas
Also the variants have moved from system.pas to their own unit called Variants.pas
The IFormDesigner interface isn't there anymore. You should use the IDesigner and typecast your variables. (this is a change probably made to accomodate the CLX and I was unable to find any documentation on it from either Borland or Delphi 6 Online help system. I only found that every IFormDesigner has been repaced with IDesigner)
 
The IDesignerSelections interface has also changed. The most helpfull change is the addition of a Get function that returns a TPersistent when giving the index of the member.
On previous versions if you wanted the TPersistent of an object you wrote:
var
  p: TPersistant;
  ...
    P := Selections[i] as TPersistant;
Now you only write:
var
  p: TPersistant;
  ...
    P := Selections.get[i];
That's about it. I have used these simple instructions to recompile all of  my third party tools, and all of my custom components.
P.S. Just remember... you have to have the source code to do this!!! :-)

[浏览: 次]   
上一篇:delphi 通过可视化组件类库监视License   下一篇:delphi 如何保存属性到运行期使用(上)
[收藏] [推荐] [返回顶部] [打印本页] [关闭窗口]  
    评论加载中…
google adsense热点文章
·delphi treeview 使用
·delphi delphi下对象类别检查
·delphi 组件序列化
·delphi 如何在DBGRID里添加行序号
·delphi 组件用户自定义设计期工具
·delphi 显示GRID单Cell框的Hint
·delphi 如何保存属性到运行期使用(上)
·delphi 组件序列化
·delphi 如何将系统所有菜单列到树上Tre
·delphi 如何保存属性到运行期使用(下)
·delphi 如何将属性在设计期保存到DFM文
·delphi 如何保存Blob类型字段到数据库
     delphi技术网 | firefox 下载 | Avant Browser下载 | dedecms 技术网 | drupal 爱好者 | php 技术网
  Copyright@www.delphichm.com,2006-2009.All Rights Reserved.
 
程序员联盟 | delphi Java .net|QQ:707102932