3 // Attempts to resolve the NameService.
5 // 0 if the NameService was resolved
6 // 1 if the NameService could not be resolved
7 // 2 if something else went wrong
9 int ACE_TMAIN (int argc
, ACE_TCHAR
*argv
[])
13 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);
17 CORBA::Object_var naming
=
18 orb
->resolve_initial_references ("NameService");
19 if (CORBA::is_nil (naming
.in ()))
24 catch (const CORBA::Exception
&)
29 catch (const CORBA::Exception
&)