A C++ client
int main (int argc, char* const* argv)
cout << "Initializing ORB..." << endl;
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
cout << "Binding..." << endl;
Money::Accounting_var acc = Money::Accounting::_bind();
cout << "Making Remote Invocation..." << endl;
cout << "The outstanding balance is "
<< acc->get_outstanding_balance()
catch (CORBA::Exception& e) {
cerr << "Caught CORBA Exception: " << e << endl;