summaryrefslogtreecommitdiff
path: root/TAO/examples/mfc
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/mfc')
-rw-r--r--TAO/examples/mfc/client.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/TAO/examples/mfc/client.cpp b/TAO/examples/mfc/client.cpp
index 3abf03fa02d..bc4b918404d 100644
--- a/TAO/examples/mfc/client.cpp
+++ b/TAO/examples/mfc/client.cpp
@@ -11,7 +11,8 @@ main (int argc, char *argv[])
{
const char *orb_name = "";
- cout << "Initializing the ORB!" << endl;
+ ACE_DEBUG ((LM_DEBUG,
+ "Initializing the ORB!\n"));
CORBA::ORB_var the_orb = CORBA::ORB_init (argc,
argv,
orb_name
@@ -31,7 +32,8 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Retrieving the servants IOR from a file
- cout << "Reading the IOR!" << endl;
+ ACE_DEBUG ((LM_DEBUG,
+ "Reading the IOR!\n"));
const char *filename =
"file://ior.txt";
@@ -40,15 +42,18 @@ main (int argc, char *argv[])
the_orb->string_to_object (filename ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- cout << "Narrowing the IOR!" << endl;
+ ACE_DEBUG ((LM_DEBUG,
+ "Narrowing the IOR!\n"));
W32_Test_Interface_var mycall =
W32_Test_Interface::_narrow (orb_obj.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- cout << "Sending the Request!" << endl;
+ ACE_DEBUG ((LM_DEBUG,
+ "Sending the Request!\n"));
char *response = mycall->getresponse (1);
- cout << "The answer ..." << response << endl;
+ ACE_DEBUG ((LM_DEBUG,
+ "The answer ...%s\n", response));
// Free up the string.
CORBA::string_free (response);