Well first I would do this on a dialog. Have a static text called Name: followed by a edit control with a member variable called m_Name. Then on the next line have another static text called First Number: followed by another edit control with a member variable called m_First. (Do the same for Second, and Total).
Then have a button labeld Get Total. And on the OnGetTotal() fuction declare 3 variables of type int for your First, Second and Total and one variable of type CString Name.
Use m_First.GetWindowText(First);
Use the same for Second and Name.
Then Total = First + Second.
<edit:>
m_Total.SetWindowText("Hello "+Name+" your total is "+Total);
</edit>
And call UpdateData(FALSE);