diff options
Diffstat (limited to 'TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp')
-rw-r--r-- | TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp b/TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp index acc84689614..688660a679e 100644 --- a/TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp +++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp @@ -18,6 +18,7 @@ #include "ace/Get_Opt.h" +#include "ace/Argv_Type_Converter.h" #include "test_i.h" @@ -25,21 +26,20 @@ // executable and initialized for static builds. #include "tao/Strategies/advanced_resource.h" -#if defined (ACE_VXWORKS) && !defined (__RTP__) +#if defined (VXWORKS) # undef ACE_MAIN # define ACE_MAIN testServer #endif - const char *ior_output_file = "test.ior"; -int main (int argc, char *argv[]) +int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { + ACE_Argv_Type_Converter convert (argc, argv); ACE_TRY_NEW_ENV { CORBA::ORB_var orb = - CORBA::ORB_init (argc, - argv, + CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "ORB_Test_Server" ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; @@ -80,7 +80,7 @@ int main (int argc, char *argv[]) // If the ior_output_file exists, output the ior to it if (ior_output_file != 0) { - FILE *output_file= ACE_OS::fopen (ior_output_file, "w"); + FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w")); if (output_file == 0) ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output file for writing IOR: %s", |