#include <CORBA.h>
#include <hello_impl.h>

#include <fstream.h>

int
main(int argc, char* argv[], char*[])
{
    CORBA_ORB_var orb = CORBA_ORB_init(argc, argv);
    CORBA_BOA_var boa = orb -> BOA_init(argc, argv);

    Hello_var p = new Hello_impl;

    CORBA_String_var s = orb -> object_to_string(p);
    const char* refFile = "Hello.ref";
    ofstream out(refFile);
    out << s << endl;
    out.close();

    boa -> impl_is_ready(CORBA_ImplementationDef::_nil());
}


