1 #include "tao/ORB_Core.h"
2 #include "tao/StringSeqC.h"
5 ACE_TMAIN(int argc
, ACE_TCHAR
*argv
[])
9 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);
12 foo
[0] = "Hello World";
13 const CORBA::StringSeq
& bar
= foo
;
14 ACE_DEBUG ((LM_DEBUG
, "String: %C\n", bar
[0].in ()));
15 CORBA::String_var mystring
= bar
[0].in ();
17 catch (const CORBA::Exception
&ex
)
19 ACE_ERROR ((LM_ERROR
, "Exception caught: %s\"%s\"\n"
20 , ex
._name(), ex
._rep_id ()));