Hex Value Input

Nov 15, 2010 at 1:45am
I know how to create edit controls and get input and all that, but how do you get input as a hex value? In console applications you would cin >> hex >> x; and it will convert it to hex when getting the input, anything I can do for this in Win32?
Nov 15, 2010 at 2:32am
Try sscanf_s

first get text from editbox

then use something like this

sscanf_s(InputBuffer,"%x",&valueOut);

hope this helps
Topic archived. No new replies allowed.