I have worked out how to store my input into My EDIT box via a Global int,and recall it using GetDlgItemInt(), and I can display the result using wsprintf and SetWindowText().
My problem is, I wish to be able to input decimals eg 2.7, and then be able to display decimals to 2 decimal places.
I have tried using float and double, but EDIT dose not seem to recognise it.
hInput = CreateWindowEx(0,
ES_AUTOVSCROLL | ES_LEFT | ES_WANTRETURN | WS_CHILD | WS_VISIBLE ,
MessageBox(hWnd,"Failed to Create PassBox","ERROR!",MB_OK);
Below is my input
float MyInput; //Global int this comes from top of my code
if(Glob<200000)// Just a temp Global int
//The above MessageBox is used only to test the input.
//It works with non decimal inputs, but code wont recognise
Could any one please point me in the right Direction,I am using Borland Bcc5.5 No MFC