summaryrefslogtreecommitdiff
path: root/TAO/examples/mfc/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/mfc/client.cpp')
-rw-r--r--TAO/examples/mfc/client.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/TAO/examples/mfc/client.cpp b/TAO/examples/mfc/client.cpp
index bc4b918404d..a25399ef526 100644
--- a/TAO/examples/mfc/client.cpp
+++ b/TAO/examples/mfc/client.cpp
@@ -2,19 +2,20 @@
#include "w32_testS.h"
#include "ace/streams.h"
-
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
const char *orb_name = "";
ACE_DEBUG ((LM_DEBUG,
"Initializing the ORB!\n"));
- CORBA::ORB_var the_orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var the_orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
orb_name
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;