Get it as a string and use strtoul with a base of 16
--
Roger Onslow
Software Developer
See my articles at http://www.codeguru.com
See the product I am working on at http://www.swishzone.com
"Operator .. give me the number for 911" .. Homer Simpson
Quote:
> how can i get hex number from edit box and convert it to decimal
> number?