简体   繁体   中英

How to interpret .otares file in Delphi XE2?

There is a new file [project-name].otares created in Delphi XE2.

The wiki says:

File with unknown resources generated during upgrade of pre XE2 project. (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:

在此处输入图片说明

您可以在资源编辑器中打开该文件,例如: 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. 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).

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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