[fpc-devel] Unexpected "Range check error while evaluating constants" when compiling for Win64

Bart bartjunk64 at gmail.com
Mon Feb 13 15:11:23 CET 2023


On Mon, Feb 13, 2023 at 8:20 AM Ondrej Pokorny via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:

> I wouldn't publish the HKEY property but create an own enumeration for it:
>
> TRegKey = (rgClassesRoot, rgCurrentUser, ....)
>
...
>
> Then make a simple transformation to HKEY:
>
> RegKeyToHKey: array[TRegKey] of HKEY = (HKEY_CLASSES_ROOT,
> HKEY_CURRENT_USER, ...);

Yep, thought of that as too.
Perhaps the best options.
Thanks.


-- 
Bart


More information about the fpc-devel mailing list