diff options
Diffstat (limited to 'TAO/examples/Simulator/Event_Supplier/Event_Con.cpp')
-rw-r--r-- | TAO/examples/Simulator/Event_Supplier/Event_Con.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp index dafdaefc101..1004129d82c 100644 --- a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp +++ b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp @@ -37,6 +37,7 @@ #include "ace/streams.h" #include "ace/os_include/os_limits.h" +#include "ace/Argv_Type_Converter.h" ACE_RCSID(Event_Supplier, Event_Con, "$Id$") @@ -253,7 +254,7 @@ Demo_Consumer::shutdown (void) static unsigned int get_options (int argc, char *argv []) { - ACE_Get_Opt get_opt (argc, argv, "Oc:djm:s:t:?"); + ACE_Get_Arg_Opt<char> get_opt (argc, argv, "Oc:djm:s:t:?"); int opt; while ((opt = get_opt ()) != EOF) @@ -289,14 +290,16 @@ get_options (int argc, char *argv []) // function main. int -main (int argc, char *argv []) +ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { + ACE_Argv_Type_Converter convert (argc, argv); + ACE_TRY_NEW_ENV { // Initialize ORB. CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet" ACE_ENV_ARG_PARAMETER); + CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "internet" ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; CORBA::Object_var poa_object = @@ -334,7 +337,7 @@ main (int argc, char *argv []) ACE_Scheduler_Factory::use_config (naming_context.in ()); - if (get_options (argc, argv)) + if (get_options (convert.get_argc(), convert.get_ASCII_argv())) ACE_OS::exit (-1); // Get the Event Channel. |