2 #include "ace/Get_Opt.h"
4 const ACE_TCHAR
*ior
= ACE_TEXT("file://test.ior");
7 parse_args (int argc
, ACE_TCHAR
*argv
[])
9 ACE_Get_Opt
get_opts (argc
, argv
, ACE_TEXT("k:"));
12 while ((c
= get_opts ()) != -1)
16 ior
= get_opts
.opt_arg ();
21 ACE_ERROR_RETURN ((LM_ERROR
,
28 // Indicates successful parsing of the command line
32 void get_stringList2(Test::Hello_var hello
);
35 ACE_TMAIN(int argc
, ACE_TCHAR
*argv
[])
40 CORBA::ORB_init (argc
, argv
);
42 if (parse_args (argc
, argv
) != 0)
45 CORBA::Object_var tmp
=
46 orb
->string_to_object(ior
);
48 Test::Hello_var hello
=
49 Test::Hello::_narrow(tmp
.in ());
51 if (CORBA::is_nil (hello
.in ()))
53 ACE_ERROR_RETURN ((LM_DEBUG
,
54 "Nil Test::Hello reference <%s>\n",
59 Test::Fls_var fstruct
;
60 Test::Vls_var vstruct
;
62 ACE_DEBUG ((LM_DEBUG
, "\n(%P|%t) - op test 1\n"));
63 hello
->op(fstruct
.out(), vstruct
.out());
65 ACE_DEBUG ((LM_DEBUG
, "\n(%P|%t) - op test 2\n"));
66 hello
->op(fstruct
, vstruct
.out());
72 catch (const CORBA::Exception
& ex
)
74 ex
._tao_print_exception ("Exception caught:");