Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Bug_2792_Regression / client.cpp
blobd57175ee3094580b0268c50c21260ef65f04530a
1 #include "tao/ORB_Core.h"
2 #include "tao/StringSeqC.h"
4 int
5 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
7 try
9 CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
10 CORBA::StringSeq foo;
11 foo.length (1);
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 ()));
21 return 1;
24 return 0;