Hi,
I have problems displaying the statements on the client side. Here is my code. in client.cc
cout << "Balance is " << account->balance() << endl;
Account::Transaction transac1;
Account:
tatement *z = account->getStatement();
cout << "List of Statements" << endl;
for (int i = 0; i < z->length(); ++i)
{
transac1 = (*z)
;
cout << transac1.amount << endl;
}
cout << "Done." << endl;
My account->getStatement() is a s follows:
::Account:tatement*
Account_impl::getStatement()
throw(
::CORBA:ystemException)
{
CORBA::ULong len = translist.size();
Account:tatement *i = new Account:tatement();
i->length(len);
for(CORBA::ULong i=0;i<len;i++)
{
(*retval) = translist.front();
translist.pop_front();
}
return i;