summaryrefslogtreecommitdiff
path: root/TAO/examples/Content_Server/AMI_Iterator/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Content_Server/AMI_Iterator/client.cpp')
-rw-r--r--TAO/examples/Content_Server/AMI_Iterator/client.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/examples/Content_Server/AMI_Iterator/client.cpp b/TAO/examples/Content_Server/AMI_Iterator/client.cpp
index 4f4368cca67..6699b86e461 100644
--- a/TAO/examples/Content_Server/AMI_Iterator/client.cpp
+++ b/TAO/examples/Content_Server/AMI_Iterator/client.cpp
@@ -8,6 +8,7 @@
#include "orbsvcs/CosNamingC.h"
#include "Web_ServerC.h"
#include "Iterator_Handler.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (AMI_Iterator,
client,
@@ -26,8 +27,9 @@ void invoke_requests (int argc,
ACE_ENV_ARG_DECL);
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;
ACE_TRY
{
@@ -37,8 +39,7 @@ main (int argc, char *argv[])
ACE_TEXT ("[filename ...]\n")),
-1);
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Mighty ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -79,8 +80,7 @@ main (int argc, char *argv[])
// completed.
int request_count = 0;
- ::invoke_requests (argc,
- argv,
+ ::invoke_requests (convert.get_argc(), convert.get_ASCII_argv(),
&request_count,
factory.in ()
ACE_ENV_ARG_PARAMETER);