Retreiving Hex data from edit box
-
Hi all, when some one enters a hex value in a edit box ,say for example 0xffff ,then is there any way by which the value can be retreived as integer itself (not as text)?? when i retreive the data as text and try to convert it using atoi or atof routines the output is always 0.It'd be great if someone through some light on this ...... Thanks in advance rajeev
-
Hi all, when some one enters a hex value in a edit box ,say for example 0xffff ,then is there any way by which the value can be retreived as integer itself (not as text)?? when i retreive the data as text and try to convert it using atoi or atof routines the output is always 0.It'd be great if someone through some light on this ...... Thanks in advance rajeev
You can use strtol[^] to convert your hexa string into a long. With this function, you can supply the base (which is 16 in your case).
Cédric Moonen Software developer
Charting control -
You can use strtol[^] to convert your hexa string into a long. With this function, you can supply the base (which is 16 in your case).
Cédric Moonen Software developer
Charting control