I was just wondering on how to validate data in visual c++ (creating a calculator where user type the two numbers in two different text boxes). I know how to do it in c++ but it seems a bit more difficult in GUI. At the moment, i'm reading a input from a text box and converting the string into a int.
I don't have the code here at the moment, as I am at uni at the moment and quickly typing this before I attend one of my lectures.
Basically, i want to be able to test the data is digit, (i was doing some research, but somehow isdigit() doesn't work) and within the int range.. ie. 2.2e-300 to 2.2e303...I'll probably post my code tonite when i get home to show what i have done so far.
One thing, in my 1'st project, which was done in c++, u guys know why when i did after assinging just say 2.2e400, and when i test to see if it is within range i.e if(int < 2.2e-300 || int > 2.2e300), i put up a message. but somehow it doesn't work? i'll provide the code tonite as i said.
Thanks, gotta go...