As Uwe points out in the comments, resourcestring
in Unicode versions of Delphi are of type WideString
. But you are using pre-Unicode Delphi, so resourcestring
just AnsiString
. This explains the compilation error.
How to act depends on what you are trying to do. If you intend to translate these lines into different languages, then you may be bound. If you intend to do this, then obviously you will be much better off with the Unicode version of Delphi.
So, since you are sticking with pre-Unicode Delphi, I think you really don't need to translate strings. In this case, just change the declaration of the const
array from WideString
to string
. As it happens, this array is declared by this code, but never mentioned.
source share