在自定义组件中找不到Designintf.dcu [英] Designintf.dcu not found in custom component

查看:408
本文介绍了在自定义组件中找不到Designintf.dcu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里将一些定制的delphi组件转换为最新的delphi xe5。
我已经在delphi xe5 ide中构建了,并且我用
designintf和设计编辑器替换了desgninf。
我也包括参考的d​​esignide.dcp。
它建立和成功安装。
但有一些包,而我尝试使用和符合错误像
designinf.dcu没有找到。



我在互联网上学习解决方案
在delphi 6之后,他们的delphi不会重新分配他们的设计时间
包装。但是因为它在delphi 5和复杂的一个我可以投资
时间分配设计和运行时代码并进行测试。



任何替代解决方案。 >

感谢
abhishek mestri

解决方案

采取非常旧的(Delphi 6或之前)组件代码,并尝试在较新的编译器中编译它。



单元 designintf.dcu 和其他一些单元仅适用于与IDE链接的软件包,即仅用于设计时间代码。在旧版本的Delphi中,您将获得源代码,但不再需要这些单元,因为这些单元不能重新分发,它们仅用于IDE。



所以在Delphi 6和7时,你被警告分开在运行时使用的代码和只能在IDE设计时使用的代码。你使用的旧组件没有这样做。



所以尝试找出哪些代码实际需要 designintf.dcu ,将该代码移动到单独的单元,并使其使用原始单元。原始单元现在是运行时代码,可以随处使用,不需要 designintf.dcu 。另一个单位是设计时间单位,只能链接到用于在IDE中安装组件的包。



更多信息: Delphi常见问题


I am here converting some customize delphi component to latest delphi xe5. I already build it in delphi xe5 ide and where desgninf i replaced with designintf and design editor. i also include designide.dcp in reference . it build and install sucessfully . but there some packages while i try to use and complie error like designinf.dcu not found come .

i study on internet for solution as after delphi 6 their delphi not redistributed their design time packges. but because it in delphi 5 and complex one i can invest time on dividing design and runtime code and test it.

kindly any alternative solution.

thanks abhishek mestri

解决方案

Such errors often happen if you take very old (Delphi 6 or before) component code and try to compile it in a newer compiler.

The unit designintf.dcu and some other units are only available to packages that link with the IDE, i.e. only for design time code. In older versions of Delphi, you would get the source code, but not anymore, because the packages in which these units are are not redistributable, they are exclusively meant for the IDE.

So at the time of Delphi 6 and 7, youw were warned to separate code that would be used at runtime and code that could only be used at designtime, by the IDE. The old component you are using did not do that, yet.

So try to find out which code actually requires designintf.dcu, move that code to a separate unit, and make it use the original unit. The original unit is now the runtime code, can be used everywhere, and doesn't need designintf.dcu. The other unit is the designtime unit and should only be linked into the package used to install the component in the IDE.

More info: Delphi FAQ

这篇关于在自定义组件中找不到Designintf.dcu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆