【发布时间】:2013-11-12 08:07:15
【问题描述】:
通过双击打开 dfm 文件时,出现以下错误:
Class TMyClass not found. Ignore the error and continue? Note: Ignoring the error may cause components to be deleted or property values to be lost.
当我点击取消时,我收到以下消息
Error creating form: Class TMyClass not found.
当我现在点击确定时,仅打开 pas 文件。
在 pas 文件中添加了 MyClass 单元(其中包含 TMyClass 定义),并且它的路径也添加到了我的搜索路径中(Ctrl 单击单元名称,将我带到单元文件)
在我看来一切都很好。我不知道为什么我会收到这个错误,为什么我无法在 RAD studio 中打开这个 dfm 文件?请帮忙。
【问题讨论】:
-
请显示一些细节。请减少 .pas 和 .dfm。
-
您已将此标记为 Delphi 7 和 Delphi XE4。是哪个?
-
实际上,这可能不相关。您是否确保安装了 TMyClass 组件以便您也可以在设计时使用它?
-
@hvd - 它的 Delphi XE4。
标签: delphi vcl delphi-xe4