summaryrefslogtreecommitdiff
path: root/TAO/examples/Content_Server/SMI_Iterator/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Content_Server/SMI_Iterator/server.cpp')
-rw-r--r--TAO/examples/Content_Server/SMI_Iterator/server.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/TAO/examples/Content_Server/SMI_Iterator/server.cpp b/TAO/examples/Content_Server/SMI_Iterator/server.cpp
index 701dccbeac0..e140cac77f8 100644
--- a/TAO/examples/Content_Server/SMI_Iterator/server.cpp
+++ b/TAO/examples/Content_Server/SMI_Iterator/server.cpp
@@ -5,6 +5,7 @@
#include "orbsvcs/CosNamingC.h"
#include "Web_ServerS.h"
+#include "ace/Argv_Type_Converter.h"
#include "Iterator_Factory_i.h"
@@ -13,14 +14,14 @@ ACE_RCSID (SMI_Iterator,
"$Id$")
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
{
// 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;