On Wed, Jun 16, 2021 at 2:21 PM Jean SUZINEAU via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote: > I guess that what was meaning Bart by hardcat is that you need to > transtype the result this way: > var dw: DWord; > begin > dw:= DWord( Registry.ReadInteger(...)) ; Indeed. This is a lossless operation. -- Bart