cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Hex Value Input
Hex Value Input
Nov 15, 2010 at 1:45am UTC
CPPProgrammer4L
(20)
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 UTC
shredded
(118)
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.