I am using
Lazarus 2.0.12
FPC 3.2.0
Windows 10
I need to read an IP Address from the registry. The IP has been written per a 3rd party software and it's part of that software configuration.
As an example, the value from the registry is:
1E32A8C0
1E = 30
32 = 50
A8 = 168
C0 = 192
So the ip address is 192.168.50.30 (not sure why they saved it in this order, probably a pile)
If I read the number as an integer, the value is 506636480.
From there, I am totally lost. It seems easier to use the Hex value in order to extract my ip and I know I can "Registry.ReadInteger", then convert using IntToHex((X),

);. fpc don't seem really friendly to work with Hex value. I am not sure how to isolate the number in pair of 2 so I can get the ip address per section. I am not sure how to work with the decimal version either. I don't see any hex variable I can work with and I am not too familiar with pointers.
Anyone can recommend a way to read this ip address or some documentation to point me in the right direction?
Thank you