简体   繁体   English

使用 DCC32 的 Delphi 10.3 编译具有旧的 Delphi 5 视觉风格

[英]Delphi 10.3 compilations using DCC32 have the old Delphi 5 visual style

A few weeks ago, our company migrated from Delphi 5 to Delphi 10.3 Rio.几周前,我们公司从 Delphi 5 迁移到 Delphi 10.3 Rio。 After some problems, we've reached our goal to compile our solutions (many EXEs) with the new IDE.在一些问题之后,我们达到了使用新 IDE 编译我们的解决方案(许多 EXE)的目标。 We're using DCC32 to compile our projects every day.我们每天都使用 DCC32 来编译我们的项目。

Unfortunately, some of them have encountered a visual issue.不幸的是,他们中的一些人遇到了视觉问题。 They are using the old VCL visual style from Delphi 5, whereas others use the newer style.他们使用来自 Delphi 5 的旧 VCL 视觉样式,而其他人使用较新的样式。

After much research, we've noticed that every executable that works has a manifest (thanks to ResourceEditor.exe), but the others which don't work don't have any manifest.经过大量研究,我们注意到每个可用的可执行文件都有一个清单(感谢 ResourceEditor.exe),但其他不起作用的可执行文件没有任何清单。

Projects seem very similar, no forced manifests files, same compiling way, same resources generator.项目看起来非常相似,没有强制清单文件,相同的编译方式,相同的资源生成器。

It seems that the default manifest ( default_app.manifest ) located in the Embarcadero directory is used during the generation.似乎在生成期间使用了位于 Embarcadero 目录中的默认清单 ( default_app.manifest )。

Does anybody know why some EXEs contain this default manifest and others don't have it?有人知道为什么有些 EXE 包含这个默认清单而其他人没有吗?

EDIT:编辑:

Thank you everyone for all your replies, i'm a bit late but i have managed to solve my problem.谢谢大家的回复,我有点晚了,但我已经设法解决了我的问题。 Unfortunately one of our libraries owns a manifest on one of his res file.不幸的是,我们的一个图书馆在他的一个 res 文件中拥有一个清单。 But some of our applications don't use this library and have this issue.但是我们的一些应用程序不使用这个库并且存在这个问题。

For those who point the IDE solution, we use dcc32 compilations which, tell me if i'm wrong, don't use the dproj file where the runtime theme is specified.对于那些指出 IDE 解决方案的人,我们使用 dcc32 编译,如果我错了,请告诉我,不要使用指定运行时主题的 dproj 文件。 The IDE solution works well but since we use dcc32 compilations, we can't use it. IDE 解决方案运行良好,但由于我们使用 dcc32 编译,因此无法使用它。

这可能是未选择“启用运行时主题”选项(项目/选项/应用程序/清单)的问题。

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

相关问题 Delphi 7 DCC32如何指定.exe名称? - Delphi 7 DCC32 How to specify .exe name? 在Delphi 6 Professional IDE中使用DCC32编译项目 - Compiling projects with DCC32 as in Delphi 6 professional IDE 使用“ dcc32 -JL”进行编译时,从另一个包中的另一个单元访问Delphi方法指针 - Accessing Delphi method pointers from another unit in another package when compiling with 'dcc32 -JL' 我怎样才能让 MSBuild 完全构建一个相当于 dcc32 -b 的 Delphi 项目? - How can I get MSBuild to do a full build of a Delphi project equivalent to dcc32 -b? 在delphi中使用DCC32.exe构建 - Build using DCC32.exe in delphi Delphi XE3:[dcc32致命错误] Unit5.pas(7):F1026找不到文件:“ RzEdit.dcu” - Delphi XE3: [dcc32 Fatal Error] Unit5.pas(7): F1026 File not found: 'RzEdit.dcu' Delphi 2009命令行编译器使用dcc32.cfg吗? - Delphi 2009 command line compiler using dcc32.cfg? Delphi 10 Seattle - [dcc32 错误] E2161 错误:RLINK32:文件“C:\\Development\\Testing\\Unit1.dfm”中的 16 位资源不受支持 - Delphi 10 Seattle - [dcc32 Error] E2161 Error: RLINK32: Unsupported 16bit resource in file "C:\Development\Testing\Unit1.dfm" delphi7中的dcc32.cfg是否可修改? - dcc32.cfg in delphi7 is modifiable? 如何使用 dcc32/dcc64 将代码编译为 ASM 文件? - How to compile code to ASM file using dcc32/dcc64?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM