简体   繁体   English

如何在 Delphi XE2 中解释 .otares 文件?

[英]How to interpret .otares file in Delphi XE2?

There is a new file [project-name].otares created in Delphi XE2.在 Delphi XE2 中创建了一个新文件 [project-name].otares。

The wiki says: 维基说:

File with unknown resources generated during upgrade of pre XE2 project.升级前 XE2 项目期间生成的具有未知资源的文件。 (Unknown resources are resources that are not included in the build configuration, like version info, icon, manifest or styles.) (未知资源是未包含在构建配置中的资源,例如版本信息、图标、清单或样式。)

How I can read this binary file meaning.我如何读取这个二进制文件的含义。 Which resources exactly haven't been migrated?究竟哪些资源没有被迁移?

After opening the otares file with ResEdit tool I displayed the information I needed:使用 ResEdit 工具打开 otares 文件后,我显示了我需要的信息:

在此处输入图片说明

您可以在资源编辑器中打开该文件,例如: XN Resource EditorResEditResource Hacker ,Visual Studio等。

Somehow such a file was created in a new package of mine by Delphi 11. A warning was being issued at compile time that duplicate resource from .res file was discarded.不知何故,这样的文件是由 Delphi 11 在我的一个新包中创建的。在编译时发出警告,提示 .res 文件中的重复资源被丢弃。 Also at other Delphi 11 installation it didn't build anymore without an error message (just that warning which didn't cause build issue at the other project).同样在其他 Delphi 11 安装中,它不会在没有错误消息的情况下构建(只是那个警告不会导致其他项目的构建问题)。

Solution was to right click the project and pick "View source", then remove the {$R *.otares} that had been placed before the {$R *.res} in the .dpk file (for app project instead of package project it would be the .dpr file)解决方案是右键单击项目并选择“查看源代码”,然后删除 .dpk 文件中放置在 {$R *.res} 之前的 {$R *.otares}(对于应用程序项目而不是包项目)这将是 .dpr 文件)

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

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