2 #include <CORBA-SMALL.h>
3 #ifdef HAVE_ANSI_CPLUSPLUS_HEADERS
15 class Hello_impl : virtual public Hello_skel {
17 char *sayHello (const char *s)
20 return CORBA::string_dup (s);
25 main (int argc, char *argv[])
27 CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "mico-local-orb");
28 CORBA::BOA_var boa = orb->BOA_init (argc, argv, "mico-local-boa");
30 Hello_impl * hi = new Hello_impl;
32 ofstream of ("server.ref");
33 CORBA::String_var str = orb->object_to_string (hi);
34 of << str.in() << endl;
37 boa->impl_is_ready (CORBA::ImplementationDef::_nil());