Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Converting standard IP address to Hex format

remyavgl05remyavgl05 Member Posts: 1
Hi all,

I need to convert an IP address for eg: "10.99.8.98" to a Hex equivalent such that ,it should take the first byte ie 10 and convert it to hex, then 99 n converting it to hex n so on.

Actually i am holding this IPAddress in a CString.so i want to know how can i take each bytes and convert to Hex since its separated by '.'.

After conversion , i should hav an array containing the equivalent hex values....like {0x0A,0x63,0x08,0x62}

Expecting solutions from u...........Plz help me out

Sign In or Register to comment.