[fpc-pascal] TRegistry documentation

Jean SUZINEAU jean.suzineau at wanadoo.fr
Wed Jun 16 14:21:37 CEST 2021

Le 16/06/2021 à 00:31, James Richters via fpc-pascal a écrit :
> Thanks for the help, it's working fine using readinteger  I guess as long as I don't have any values large enough to need the most significant digit that would work...

I guess that what was meaning Bart by hardcat is that you need to 
transtype the result this way:
var dw: DWord;
      dw:= DWord( Registry.ReadInteger(...)) ;

Integer and DWord have the same memory size (4 bytes) so this way you 
don't "lose" the most significant bit, you get your real DWord.

More information about the fpc-pascal mailing list