summaryrefslogtreecommitdiff
path: root/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
diff options
context:
space:
mode:
authorjohn_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-05-08 23:00:05 +0000
committerjohn_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-05-08 23:00:05 +0000
commitd1160e68b1301a8b0e120ba8da56bb2e7d4fb49e (patch)
treecf04398acb7ad9fb45311eb105d60975028bbc03 /TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
parent1c3dd540264435be21072a3a69a8a8e969bd2b1a (diff)
downloadATCD-oci_wchar_refactor_post_1_5_1_branch.tar.gz
Fri May 5 14:33:29 UTC 2006 Ciju John <john_c@ociweb.com>oci_wchar_refactor_post_1_5_1_branch
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;