Delphi 2009 - 未重新创建 res 文件

发布于 2024-09-16 13:21:40 字数 193 浏览 3 评论 0原文

我刚刚创建了一个带有工具栏、一些工具栏按钮和 TPngImageList 的小应用程序。 我已经保存了该项目并编译了它。

现在我已经删除了项目文件夹中的 .res 文件。 当我现在在 IDE 中打开项目时,delphi 提示“找不到 Res 文件。新建”。 但之后,我在项目文件夹中找不到新创建的 res 文件。 (换句话说:它不存在!) 为什么? 谢谢!

I'Ve just created a small application with a toolbar, some toolbar buttons and an TPngImageList.
I have saved the project and compiled it.

Now I've deleted the .res file in the project folder.
When I now open the project in the IDE, delphi says "Res file could not be found. New created".
But after that, I can't find the new created res file in my project folder. (In other words: it isn't there!)
Why?
Thanks!

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

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

发布评论

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

评论(2

娇俏 2024-09-23 13:21:40

我刚刚创建了一个新项目 Project1.dpr,并将其保存在一个新的空目录中。然后我删除了 Project1.res,并打开了该项目。 Delphi 2009 说

[Window Title]
Warning

[Content]
Cannot find resource file: C:\Users\Andreas Rejbrand\Documents\RAD Studio\Projects\test2\Project1.res.  Recreated.

[OK]

,当我保存项目时,Project1.res 文件被重新创建。如果我关闭项目而不保存,则不会创建 Project1.res 文件。

I just created a new project, Project1.dpr, and saved it in a new, empty, directory. Then I removed Project1.res, and opened the project. Delphi 2009 said

[Window Title]
Warning

[Content]
Cannot find resource file: C:\Users\Andreas Rejbrand\Documents\RAD Studio\Projects\test2\Project1.res.  Recreated.

[OK]

and when I then saved the project, the Project1.res file was recreated. If I close the project without saving, no Project1.res file is created.

零度° 2024-09-23 13:21:40

检查 .dproj 文件并更改

<SkipResGeneration>true</SkipResGeneration>

<SkipResGeneration>false</SkipResGeneration>

(如果存在)。

Check the .dproj file and change

<SkipResGeneration>true</SkipResGeneration>

to

<SkipResGeneration>false</SkipResGeneration>

if it is present.

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