summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp')
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp b/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp
index 84f2daf1b47..e858f379b04 100644
--- a/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp
+++ b/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp
@@ -17,6 +17,7 @@
// For in-process Notification Service.
//
#include "ace/Dynamic_Service.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/Notify/Service.h"
#include "orbsvcs/Notify/CosNotify_Initializer.h" // NS static link helper.
@@ -35,9 +36,11 @@ using namespace CosNotifyChannelAdmin;
int
ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- ORB_var orb (ORB_init (argc, argv));
+ ORB_var orb (ORB_init (convert.get_argc(), convert.get_ASCII_argv()));
if (argc < 2)
{
@@ -134,7 +137,7 @@ ACE_TMAIN (int argc, ACE_TCHAR* argv[])
ACE_INET_Addr space_craft_addr;
char const* space_craft_name = 0;
- space_craft_name = argv[1];
+ space_craft_name = convert.get_ASCII_argv()[1];
// Do a quick mapping to mcast addresses.
//