summaryrefslogtreecommitdiff
path: root/TAO/examples/mfc
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-11-27 14:36:38 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-11-27 14:36:38 +0000
commitfad6797c6a220df943dc908704b24dea547b6d6b (patch)
tree0f67c1921d979cf3503a5a114397589561f87563 /TAO/examples/mfc
parent3851c5945ed95bf52bd3d2b713d95b5835be9d25 (diff)
downloadATCD-fad6797c6a220df943dc908704b24dea547b6d6b.tar.gz
ChangeLogTag: Sat Nov 27 14:34:12 UTC 2004 Martin Corino <mcorino@remedy.nl>
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);