How to retrieve a hex value form an edit control

Hey,
I am working on this project where an user has to enter a hex value in an edit control and I need to retrieve that variable. I have added a member variable to that control. The variable is a short type but whenever I retrieve it I am not getting the right value. I don't think I am retrieving the variable correctly. Below is an example of my code:
1
2
3
4
5
6
//num is the control variable 
if(num <255)
{
  //do something
}


Any help will be greatly appreciated.
Topic archived. No new replies allowed.