summaryrefslogtreecommitdiff
path: root/TAO/examples/Advanced/ch_3/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Advanced/ch_3/server.cpp')
-rw-r--r--TAO/examples/Advanced/ch_3/server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/examples/Advanced/ch_3/server.cpp b/TAO/examples/Advanced/ch_3/server.cpp
index e4efc619c9a..be27a730d67 100644
--- a/TAO/examples/Advanced/ch_3/server.cpp
+++ b/TAO/examples/Advanced/ch_3/server.cpp
@@ -21,6 +21,7 @@
#include "server.h"
#include <ace/streams.h>
+#include "ace/Argv_Type_Converter.h"
// The following headers are #included automatically by ACE+TAO.
// Therefore, they don't need to be included explicitly.
@@ -49,10 +50,11 @@ get_gmt (void) throw (CORBA::SystemException)
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
try
{
// Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
// Get reference to Root POA.
CORBA::Object_var obj