summaryrefslogtreecommitdiff
path: root/TAO/examples/POA/DSI/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/POA/DSI/client.cpp')
-rw-r--r--TAO/examples/POA/DSI/client.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/TAO/examples/POA/DSI/client.cpp b/TAO/examples/POA/DSI/client.cpp
index f3361796b0b..f6262d78466 100644
--- a/TAO/examples/POA/DSI/client.cpp
+++ b/TAO/examples/POA/DSI/client.cpp
@@ -21,6 +21,7 @@
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(DSI, client, "$Id$")
@@ -31,7 +32,7 @@ static int shutdown_server = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "xk:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:f:");
int c;
while ((c = get_opts ()) != -1)
@@ -100,8 +101,9 @@ read_IOR_from_file (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
char str [255];
@@ -110,15 +112,13 @@ main (int argc, char **argv)
{
ACE_OS::strcpy (str,
"CORBA::ORB_init");
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
-
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse the command-line arguments to get the location of the
// IOR
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
if (IOR == 0)