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;
begin
     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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to