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

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

问题描述

我在这里将一些自定义的 delphi 组件转换为最新的 delphi xe5.我已经在delphi xe5 ide中构建了它,并且我用desgninf替换了它designintf 和设计编辑器.我还包括 designide.dcp 参考.它成功构建和安装.但是当我尝试使用和编译错误时有一些包没有找到designinf.dcu.

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 .

我在互联网上研究解决方案在 delphi 6 之后,他们的 delphi 没有重新分配他们的设计时间包.但因为它在德尔福 5 和复杂的一个我可以投资花时间划分设计和运行时代码并对其进行测试.

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.

谢谢阿布舍克梅斯特里

推荐答案

如果您使用非常旧的(Delphi 6 或之前的)组件代码并尝试在较新的编译器中编译它,通常会发生此类错误.

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

designintf.dcu 单元和其他一些单元仅适用于与 IDE 链接的包,即仅适用于设计时代码.在旧版本的 Delphi 中,您会获得源代码,但现在不会了,因为这些单元所在的包不可再分发,它们专门用于 IDE.

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 Delp 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.

所以在 Delphi 6 和 7 的时候,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.

所以尝试找出哪些代码实际上需要designintf.dcu,将该代码移至单独的单元,并使其使用原始单元.原来的单元现在是运行时代码,可以在任何地方使用,并且不需要designintf.dcu.另一个单元是设计时单元,应该只链接到用于在 IDE 中安装组件的包中.

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.

更多信息:德尔福常见问题解答

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

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