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.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/TAO/examples/mfc/client.cpp b/TAO/examples/mfc/client.cpp
deleted file mode 100644
index 842266a1cde..00000000000
--- a/TAO/examples/mfc/client.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-
-#include "tao\corba.h"
-#include "W32_TestC.h"
-
-int
-main (int argc, char *argv[])
-{
- const char *orb_name = "";
-
- cout << "Initializing the ORB!" << endl;
- CORBA::ORB_var the_orb = CORBA::ORB_init (argc,
- argv,
- orb_name);
- CORBA::Object_var orb_obj =
- the_orb->resolve_initial_references ("RootPOA");
-
- PortableServer::POA_var the_root_poa =
- PortableServer::POA::_narrow (orb_obj.in ());
- PortableServer::POAManager_var the_poa_manager =
- the_root_poa->the_POAManager ();
-
- // Retrieving the servants IOR from a file
- cout << "Reading the IOR!" << endl;
-
- const char *filename =
- "file://ior.txt";
-
- orb_obj =
- the_orb->string_to_object (filename);
-
- cout << "Narrowing the IOR!" << endl;
-
- W32_Test_Interface_var mycall =
- W32_Test_Interface::_narrow (orb_obj.in ());
-
- CORBA::String response;
-
- cout << "Sending the Request!" << endl;
- response = mycall->getresponse (1);
-
- cout << "The answer ..." << response << endl;
-
- return 0;
-}