#include #include int main (int ac, char **av) { HelloObjectStatus status; if (ac < 2) { fprintf(stderr, "Usage: HelloClient \n"); return (1); } class HelloObject_T_Hello *m = HelloObject_T_Hello::ILUCreateFromSBH(av[1], NULL); if(m) { char *name = m->hello(&status); if (status.returnCode != NULL) { fprintf (stderr, "Exception \"%s\" (%d) signalled on request Name with server on machine %s.\n", status.returnCode, status.values.anyvalue, av[1]); return(0); } printf ("%s\n", name); delete m; } else { printf ("couldn't find instance of HelloObject.hello on host %s\n", av[1]); } return (0); }