summaryrefslogtreecommitdiff
path: root/TAO/examples/Quoter/Factory_Finder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Quoter/Factory_Finder.cpp')
-rw-r--r--TAO/examples/Quoter/Factory_Finder.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/TAO/examples/Quoter/Factory_Finder.cpp b/TAO/examples/Quoter/Factory_Finder.cpp
index f8b7c4a070e..8c3afbbbffe 100644
--- a/TAO/examples/Quoter/Factory_Finder.cpp
+++ b/TAO/examples/Quoter/Factory_Finder.cpp
@@ -15,6 +15,7 @@
// ============================================================================
#include "Factory_Finder.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Quoter,
@@ -189,7 +190,7 @@ Quoter_Factory_Finder_Server::run (ACE_ENV_SINGLE_ARG_DECL)
u_int
Quoter_Factory_Finder_Server::parse_args (void)
{
- ACE_Get_Opt get_opt (this->argc_, this->argv_, "?d:");
+ ACE_Get_Arg_Opt<char> get_opt (this->argc_, this->argv_, "?d:");
int opt;
int exit_code = 0;
@@ -220,13 +221,14 @@ Quoter_Factory_Finder_Server::parse_args (void)
// function main
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Quoter_Factory_Finder_Server quoter_Factory_Finder_Server;
ACE_TRY_NEW_ENV
{
- int result = quoter_Factory_Finder_Server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int result = quoter_Factory_Finder_Server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result == -1)