Hi,
I have problems displaying the statements on the client side. Here is my code. in client.cc
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:
This just copies elements from my list into a sequence and returns a pointer reference to the client side.
::Account:tatement*
Account_impl::getStatement()
throw(
::CORBA:ystemException)
{
CORBA::ULong len = translist.size();
Account:tatement *k = new Account:tatement();
i->length(len);
for(CORBA::ULong i=0;i<len;i++)
{
(*kl) = translist.front();
translist.pop_front();
}
return i;