简体   繁体   English

如何解决在Project(Not Package)中找不到的错误'DesignIntf​​.dcu'

[英]How to solve error 'DesignIntf.dcu' not found in Project (Not Package)

I've done a lot of research before asking here so I already tried to add -LUDesignIDE to the compiler options. 在问到这里之前,我已经做了大量研究,因此我已经尝试将-LUDesignIDE添加到编译器选项中。

However it was enough to add 'DesignIDE' to the requires part of the package files but in my .exe files - so pure project files with some units - I don't know what to do to solve this DesignIntf.dcu not found problem? 但是, 将'DesignIDE'添加到包文件的require部分中就足够了,但是在我的.exe文件中-如此纯净的项目文件(带有某些单位)-我不知道该怎么办才能解决DesignIntf​​.dcu找不到问题?

They don't even use DesignIntf directly and when I add it to the uses part, still - not found. 他们甚至不直接使用DesignIntf​​,当我将其添加到使用部分时,仍然-找不到。

The subject is an update from Delphi2007 to Delphi2010. 该主题是从Delphi2007到Delphi2010的更新。

I would be pleased if there is anybody who may have some other possible solutions. 如果有人可以提出其他可能的解决方案,我将感到高兴。

Thanks. 谢谢。

Ok, this solved the extraordinary problem: 好的,这解决了非凡的问题:

In .dpk files you can add 'DesignIDE' in the requires section. 在.dpk文件中,您可以在require部分中添加'DesignIDE'。

In .dpr files you can do things like that in the uses section-> 在.dpr文件中,您可以在“使用”部分中执行类似的操作->

DesignIntf in 'C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\source\ToolsAPI\de\DesignIntf.pas',
DesignerTypes in 'C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\source\ToolsAPI\DesignerTypes.pas',
  DesignMenus in 'C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\source\ToolsAPI\DesignMenus.pas';

[The path above is for Delphi 2010, yours can be different] [以上路径适用于Delphi 2010,您的路径可能有所不同]

So it's about which Units you exactly need and to put them into your project. 因此,这是关于您确切需要哪些单位并将其放入项目的信息。

And yes, the commentators are right but as I wrote in the headline, it's not about a package, the packages are all divided in dcl and non dcl, it is about projects using non dcl packages but requiring Design units. 是的,评论员是正确的,但是正如我在标题中所写,这与软件包无关,软件包都分为dcl和non dcl,这是关于使用non dcl软件包但需要设计单元的项目。

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

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