diff options
Diffstat (limited to 'TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp b/TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp index 23f3ff6baf8..01c18a645e5 100644 --- a/TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp +++ b/TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp @@ -5,6 +5,7 @@ #include "tao/Utils/PolicyList_Destroyer.h" #include "orbsvcs/CosNamingC.h" #include "tao/AnyTypeCode/Any.h" +#include "ace/Argv_Type_Converter.h" class Time_impl : public POA_TimeModule::Time @@ -43,16 +44,17 @@ Time_impl::Shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) } 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 { // Initialize orb CORBA::ORB_var orb = - CORBA::ORB_init (argc, - argv, + CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; |