Delphi XE4“未找到类”但编译得很好 [英] Delphi XE4 "class not found" but compiles fine

查看:193
本文介绍了Delphi XE4“未找到类”但编译得很好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司主要产品的GUI是在90年代后期用Delphi编写的,并且已经更新到Delphi 2007.我正在与一个小组合作将Delphi 2007更新为XE4。

The GUI for my company's main product was written in Delphi in the late '90's, and has been updated to Delphi 2007. I'm working with a group to update the Delphi 2007 to XE4.

我们仍然使用ADL VCL中的许多组件(类似于DevExpress,但现在已经不存在),但尚未安装整个软件包。相反,我们需要将文件放在与我们的项目文件夹分开的文件夹中,并指定这些文件的路径:
工具 - 选项 - 库浏览路径

项目 - 选项 - 搜索路径

We still use a number of components from ADL VCL (similar to DevExpress, but now defunct), but have not installed the entire package. Rather, we have the files we need located in a folder seperate from our project folder, and have the path to these files specified in: Tools-Options-Library-browsing path and Project-Options-search path

当我打开main时,我收到错误:
找不到TADLAboutBox。忽略错误并继续?

When I open main, I get the error: "TADLAboutBox not found. Ignore the error and continue?"

定义ADLAboutBox的单元ADLAbout在main的uses子句中声明。
此外,我们的项目编译得很好。

The unit "ADLAbout" that defines "ADLAboutBox" is declared in the uses clause in main. Moreover, our project compiles just fine.

如何摆脱这些消息?可能有什么问题?

How can I get rid of these messages? What might be wrong?

非常感谢您的建议。

推荐答案

ADL VCL不适用于XE4,因为它在XE4发布之前已经停止了一段时间。如果您有ADL源代码,并将其移植到XE4,那么您可能会取得一些成功。

ADL VCL is not available for XE4, since it was discontinued some time before XE4 was released. If you have the ADL source code, and have ported it to XE4, then it's plausible that you may have some success.

您描述的错误消息表明没有安装组件的设计时包。您需要为要在设计时与之交互的任何组件构建和安装设计时包。

The error message you describe is symptomatic of not having the design-time packages for the components installed. You'll need to build and install design-time packages for any components that you want to interact with at design-time.

这篇关于Delphi XE4“未找到类”但编译得很好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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