summaryrefslogtreecommitdiff
path: root/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Load_Balancing_persistent/Identity_Client.cpp')
-rwxr-xr-xTAO/examples/Load_Balancing_persistent/Identity_Client.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp b/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
index 0ffc8625639..d122b750da3 100755
--- a/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
+++ b/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
@@ -19,6 +19,7 @@
#include "ace/Get_Opt.h"
#include "ace/High_Res_Timer.h"
#include "ace/Stats.h"
+#include "ace/Argv_Type_Converter.h"
Identity_Client::Identity_Client (void)
: group_factory_ior_ (0),
@@ -31,7 +32,7 @@ Identity_Client::Identity_Client (void)
int
Identity_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "di:n:k:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "di:n:k:r");
int c;
while ((c = get_opts ()) != -1)
@@ -245,12 +246,13 @@ Identity_Client::~Identity_Client (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
int result = 0;
Identity_Client client;
- if (client.init (argc, argv) == -1)
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
ACE_DECLARE_NEW_CORBA_ENV;