resourcestring

How ResourceString Identifiers are generated by delphi compiler?

牧云@^-^@ 提交于 2020-01-21 12:07:16
问题 My question is like Delphi compiler generates and assign numerical Identifiers to all the ResourceStrings when application is compiled, There are few documents which says when ever application is recompiled the numerical Identifiers for Resourcestrings are regenerated, and they warn relying on it because it may change after regenerations. There ate so many third party localization tools that use and store this resourcestring numerical identifiers for internal reference and translation. Is

Delphi How can i find a resource name from resourcestring unit

强颜欢笑 提交于 2019-12-17 21:14:40
问题 The situation is: unit abc; interface resourcestring aabbcc = 'my text here'; implementation end. From my application I received error code 'aabbcc'. Is possible to access with error code the resource name aabbcc ? 回答1: I imagine you're asking for a function with the following signature and behavior: function GetNamedResourceString(const Name: string): string; Assert(GetNamedResourceString('aabbcc') = 'my text here'); Resource strings are stored in your program in a string-table resource,

How to solve “Need imported data reference” while building with runtime packages

送分小仙女□ 提交于 2019-12-10 15:06:40
问题 To help us modularize a monolithic application, we are in the process of setting up packages for use in debug builds, while still compiling to a single exe for release builds. One of our packages (EAUtils) contains a unit that is now producing [DCC Error] E2201 Need imported data reference ($G) to access 'SMsgDlgWarning' from unit 'SystemUtils' . This happens when building the EAUtils package itself. I am not into building packages that depend on EAUtils yet. EAUtils only depends on rtl/vcl