Dec 7, 2012 at 11:18pm
Im trying to create a bank account. In the bank account the user creates an account and puts whatever amount they want to open account. after account is created they can go to withdraw or deposit and add or subtract additional monty from the account. Im trying to use a method for the deposits but I keep getting an error"error C2064: term does not evaluate to a function taking 1 arguments" and Im not sure exactly what the problem is. I know the deposit has to be added to the balance and the balance needs to be updated but I cant even get to that point. Im using Visual Studio 2010 Window forms application,here is the code I'm entering.
if (tabControl1->SelectedTab == tabPage2)
{
double depamount;
double BalDep;
double FindDepBal;
BalDep = (bal - depamount);
Double::TryParse(txtDeposit->Text, depamount);
FindDepBal(BalDep);
lblBal->Text = FindDepBal.ToString();
txtDeposit->Text = BalDep.ToString();