void CCalciDlg::OnBnClickedCbuttondiv() { double a,b; resu.SetFocus(); UpdateData(TRUE); a=num1; //num1 is the Edit Box Resource resu.SetFocus(); a=num; UpdateData(TRUE); resu.SetFocus(); b=num1; num=a/b; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)