|
-
July 20th, 1999, 04:20 AM
#1
Hex2Dec!!!
Hi All,
Is there any built-in function to convert an Hexadecimal value to Decimal value(Integer,not float)and viceversa. OR is there any easy way of doing it.---- But I want it to work for a wide range of values.
The Exact problem is --- I have an application where the user is asked to type a value and this value is the input to my function. Here I am using an Edit Box to get the input--- and the input to my function must be a hexa value.
--To be precise, If the user types in 20000 in the edit box, and I use GetDlgItemText()function to get the string value and use atol()function to get the integer value. I value I get will be 20000 only and not 20000hexa or not even the decimal value of 20000.
Thanks in Advance...
Vittal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|