blob: 139fc1df7c95ebed6ff08506a9cb6ae6367cbd9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// $Id$
#include "tao/ORB_Core.h"
#include "tao/StringSeqC.h"
ACE_RCSID(Bug_2792_Regression,
client,
"$Id$")
int
ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
try
{
CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
CORBA::StringSeq foo;
foo.length (1);
foo[0] = "Hello World";
const CORBA::StringSeq & bar = foo;
ACE_DEBUG ((LM_DEBUG, "String: %C\n", bar[0].in ()));
CORBA::String_var mystring = bar[0].in ();
}
catch (const CORBA::Exception &ex)
{
ACE_ERROR ((LM_ERROR, "Exception caught: %s\"%s\"\n"
, ex._name(), ex._rep_id ()));
return 1;
}
return 0;
}
|