diff options
Diffstat (limited to 'TAO/examples/Quoter/client.cpp')
-rw-r--r-- | TAO/examples/Quoter/client.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/TAO/examples/Quoter/client.cpp b/TAO/examples/Quoter/client.cpp index 7dec1d90a22..1d3482cacd6 100644 --- a/TAO/examples/Quoter/client.cpp +++ b/TAO/examples/Quoter/client.cpp @@ -1,6 +1,7 @@ // $Id$ #include "ace/Read_Buffer.h" +#include "ace/Argv_Type_Converter.h" #include "orbsvcs/CosNamingC.h" @@ -42,7 +43,7 @@ Quoter_Client::Quoter_Client (void) int Quoter_Client::parse_args (void) { - ACE_Get_Opt get_opts (argc_, argv_, "n:d:lx"); + ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "n:d:lx"); int opt; int exit_code = 0; @@ -372,21 +373,22 @@ Quoter_Client::init (int argc, char **argv) // This function runs the test. int -main (int argc, char **argv) +ACE_TMAIN (int argc, ACE_TCHAR **argv) { + ACE_Argv_Type_Converter convert (argc, argv); ACE_Thread_Manager thr_mgr; int i; int threads = 1; for (i = 0; i < argc; i++) - if (ACE_OS::strcmp (argv[i], "-n") == 0) - threads = ACE_OS::atoi(argv[i + 1]); + if (ACE_OS::strcmp (convert.get_ASCII_argv()[i], "-n") == 0) + threads = ACE_OS::atoi(convert.get_ASCII_argv()[i + 1]); Quoter_Task **clients = new Quoter_Task*[threads]; for (i = 0; i < threads; i++) - clients[i] = new Quoter_Task (argc, argv); + clients[i] = new Quoter_Task (convert.get_argc(), convert.get_ASCII_argv()); for (i = 0; i < threads; i++) |