错误消息:“未找到资源 ExperimentFrame.res”

发布于 2024-07-25 01:59:43 字数 413 浏览 5 评论 0原文

我正在尝试使用工厂模式在我的项目中创建一个框架 VCL,

如下所示:

TFrame* newToolbarFrame =
   FrameFactory::getInstance().createObject(toolbarFrameClassId);

当工厂创建实现类时,我收到一条有关缺少资源文件的错误消息。

例如,如果我使用工厂创建类 TFrameFooBar 的实例,我会得到以下异常:

gymAce 项目引发了 EResNotFound,并显示消息“未找到资源 TFrameFooBar”。

这看起来有点像 IDE 问题。

有谁知道这个问题的解决方法?

I'm trying to create a frame VCL inside my project using factory pattern

something like this:

TFrame* newToolbarFrame =
   FrameFactory::getInstance().createObject(toolbarFrameClassId);

When the factory creates the implementation class, I get an error message about missing resource file.

For example if I create an instance of class TFrameFooBar using factory, I get this Exception:

Project gymAce raised EResNotFound with message "Resource TFrameFooBar not found" .

This looks bit like an IDE issue.

Does anyone know a workaround for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

TFrame 正在尝试执行其设计时属性的 DFM 流,但您的应用程序未将实际 TFrameFooBar 类的 DFM 链接到可执行文件的资源中,以便 TFrame 在运行时查找。

TFrame is trying to perform DFM streaming of its design-time properties, but your app is not linking in the actual TFrameFooBar class's DFM into the executable's resources for TFrame to find at runtime.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文