summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp')
-rw-r--r--TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp b/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp
index ccf813d0e9c..8ebf26df60d 100644
--- a/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp
+++ b/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp
@@ -2,16 +2,19 @@
#include "TestServer.h"
#include <ace/streams.h>
+#include "ace/Argv_Type_Converter.h"
-int main(int argc, char* argv[])
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try
{
CORBA::ORB_var orb;
- orb = CORBA::ORB_init(argc, argv);
+ orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv());
{
- TestServer server(orb.in(), argc, argv);
+ TestServer server(orb.in(), convert.get_argc(), convert.get_ASCII_argv());
server.run();
}