summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp')
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp
index 2e806a208a2..7a471f63f27 100644
--- a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
typedef ACE_Unmanaged_Singleton<Sender, ACE_Null_Mutex> SENDER;
@@ -127,11 +128,10 @@ Sender::shutdown (void)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:p:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:p:r:d");
int c;
while ((c= opts ()) != -1)
@@ -214,7 +214,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -426,15 +426,16 @@ Sender::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -469,8 +470,7 @@ main (int argc,
// Initialize the Sender.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -481,7 +481,7 @@ main (int argc,
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",