Welcome! Log In Create A New Profile

Advanced

problems displaying statements on client

Posted by Iqbal 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
problems displaying statements on client
July 27, 2006 11:55PM
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:confused smileytatement *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:confused smileytatement*
Account_impl::getStatement()
throw(
::CORBA:confused smileyystemException)

{

CORBA::ULong len = translist.size();
Account:confused smileytatement *i = new Account:confused smileytatement();

i->length(len);
for(CORBA::ULong i=0;i<len;i++)
{
(*retval) = translist.front();
translist.pop_front();
}
return i;
Re: problems displaying statements on client
July 31, 2006 10:52PM
I think its because you are returning the i instead of retval.
Sorry, only registered users may post in this forum.

Click here to login