简体   繁体   English

组件设计-“找不到文件:'DockForm.dcu”?

[英]Component Design - “File not found: 'DockForm.dcu”?

I am writing a component that requires the use of both the units 我正在编写一个需要同时使用两个单元的组件

DesignIntf, DesignEditors DesignIntf​​,DesignEditors

When i build my package, i get the error 当我构建我的包时,我得到了错误

File not found: 'DockForm.dcu' 找不到文件:“ DockForm.dcu”

When I add "designide.dcp" to the "requires" section of the package, it builds and compiles just fine. 当我在包的“ requires”部分中添加“ designide.dcp”时,它就可以构建和编译。

HOWEVER, when i add the component to a new project (in design time, it works. I can change all the properties, etc......BUT, it does NOT work in runtime. When i run the application with the component on the main form, i once again get the " "File not found: 'DockForm.dcu'" error 但是,当我将组件添加到新项目中时(在设计时,它可以工作。我可以更改所有属性,等等……但是,它在运行时不起作用。当我使用组件运行应用程序时在主窗体上,我再次收到““找不到文件:'DockForm.dcu'”错误

please help 请帮忙

thanks 谢谢

You're not allowed to use any of the Design* units in your runtime code. 您不允许在运行时代码中使用任何Design *单元。 It's for use at designtime in the IDE only, and can't be linked in to your own application. 它仅在设计时在IDE中使用,不能链接到您自己的应用程序。 That's why the .DCUs aren't found; 这就是为什么找不到.DCU的原因。 they're not provided, and their functionality is provided in the designtime only packages in the IDE itself. 它们没有提供,它们的功能在IDE本身的仅设计时包中提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM