diff options
Diffstat (limited to 'TAO/examples/mfc/client.cpp')
-rw-r--r-- | TAO/examples/mfc/client.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/examples/mfc/client.cpp b/TAO/examples/mfc/client.cpp index a0bb4dd105f..20e1d865e99 100644 --- a/TAO/examples/mfc/client.cpp +++ b/TAO/examples/mfc/client.cpp @@ -14,20 +14,20 @@ main (int argc, char *argv[]) cout << "Initializing the ORB!" << endl; CORBA::ORB_var the_orb = CORBA::ORB_init (argc, argv, - orb_name, - ACE_TRY_ENV); + orb_name + TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; CORBA::Object_var orb_obj = - the_orb->resolve_initial_references ("RootPOA", ACE_TRY_ENV); + the_orb->resolve_initial_references ("RootPOA" TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; PortableServer::POA_var the_root_poa = - PortableServer::POA::_narrow (orb_obj.in (), ACE_TRY_ENV); + PortableServer::POA::_narrow (orb_obj.in () TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; PortableServer::POAManager_var the_poa_manager = - the_root_poa->the_POAManager (ACE_TRY_ENV); + the_root_poa->the_POAManager (TAO_ENV_SINGLE_ARG_PARAMETER); ACE_TRY_CHECK; // Retrieving the servants IOR from a file @@ -37,13 +37,13 @@ main (int argc, char *argv[]) "file://ior.txt"; orb_obj = - the_orb->string_to_object (filename, ACE_TRY_ENV); + the_orb->string_to_object (filename TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; cout << "Narrowing the IOR!" << endl; W32_Test_Interface_var mycall = - W32_Test_Interface::_narrow (orb_obj.in (), ACE_TRY_ENV); + W32_Test_Interface::_narrow (orb_obj.in () TAO_ENV_ARG_PARAMETER); ACE_TRY_CHECK; cout << "Sending the Request!" << endl; @@ -56,7 +56,7 @@ main (int argc, char *argv[]) ACE_CATCHANY { ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "Catched exception:"); + "Caught exception:"); return 1; } ACE_ENDTRY; |