473,327 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

stc::cout in server mode (running in background)

hi

how to print text messages on standard output (like a "std::cout <<
"text";) in below serwer :
http://devphyl.rootnode.pl/com/SieveServer/
original site: http://msdn.microsoft.com/msdnmag/issues/0400/async/

unfortunately std::cout doesn't work, because serwer start and run in
background, so my question
is what I need to change in code.

save to file is not acceptable.

Jun 8 '07 #1
4 1842
devphylosoff wrote:
hi

how to print text messages on standard output (like a "std::cout <<
"text";) in below serwer :
http://devphyl.rootnode.pl/com/SieveServer/
original site: http://msdn.microsoft.com/msdnmag/issues/0400/async/

unfortunately std::cout doesn't work, because serwer start and run in
background, so my question
is what I need to change in code.

save to file is not acceptable.
Then you are either out of luck, or there is a platform specific answer.
Try a group dedicated to your platform.

--
Ian Collins.
Jun 8 '07 #2
the code is a COM server running on Windows XP, but my problem is to
find the easiest way to log server activy
(logging without delay to access, so the solution with saving to file
is omitted)
I use Microsoft Visual Studio and I cannot find out the built-in
output tab for program output (it means not for this program)
major changes in server code are also not allowable.
moreover, server create threads.

i think that problem is general in similar applications.

Jun 9 '07 #3
devphylosoff wrote:

Please retain context in your replies, this post doesn't make sense on
its own.
the code is a COM server running on Windows XP, but my problem is to
find the easiest way to log server activy
(logging without delay to access, so the solution with saving to file
is omitted)
I use Microsoft Visual Studio and I cannot find out the built-in
output tab for program output (it means not for this program)
major changes in server code are also not allowable.
moreover, server create threads.

i think that problem is general in similar applications.
The general solution is to log to a file. There isn't any guarantee
that an application running in the background (where supported) even has
an output device attached.

--
Ian Collins.
Jun 9 '07 #4
On Jun 9, 6:54 am, Ian Collins <ian-n...@hotmail.comwrote:
devphylosoff wrote:
Please retain context in your replies, this post doesn't make sense on
its own.
the code is a COM server running on Windows XP, but my problem is to
find the easiest way to log server activy
(logging without delay to access, so the solution with saving to file
is omitted)
I use Microsoft Visual Studio and I cannot find out the built-in
output tab for program output (it means not for this program)
major changes in server code are also not allowable.
moreover, server create threads.
i think that problem is general in similar applications.
The general solution is to log to a file.
Is it? All of the servers I've worked on log to a variety of
places, depending on how serious the log is: a file, syslog,
email...
There isn't any guarantee that an application running in the
background (where supported) even has an output device
attached.
There is, however, a pretty good guarantee that a terminal won't
be attached.

I'm not sure what the OP's problem is with logging to a file.
Maybe he just doesn't know you have to flush after each log
message.

--
James Kanze (Gabi Software) email: ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Jun 9 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have...
9
by: YZK | last post by:
Hello. I'm not a Web developer, just a user, and I think I may have somehow messed myself up majorly. I'm not quite sure how. Right now, javascript used by websites I go to either does not work at...
2
by: LordBlue | last post by:
Hi, please forgive me if i'm sending this post in the wrong place, and please don't tell me to post it in another group, because if i found a better one i'd have already done it. I'm writing a...
0
by: Chris Fink | last post by:
I am having a problem highlighting a row in a datalist during the itemdatabound event. What is occurring is that a new td row is being wrapped around the datalist item which is highlighted (very...
22
by: fynali | last post by:
Hi all, I have two files: - PSP0000320.dat (quite a large list of mobile numbers), - CBR0000319.dat (a subset of the above, a list of barred bumbers) # head PSP0000320.dat CBR0000319.dat...
10
by: pocmatos | last post by:
Hi all, Using -std=c99 to enforce the c99 standard in gcc I get: $ gcc -Wall -std=c99 timespec.c timespec.c: In function 'main': timespec.c:5: error: storage size of 'a' isn't known...
0
by: DarkBlue | last post by:
Trying to install wxPython on Suse10.1 64 with gcc4.1.0 and get wxPython-src-2.6.3.2/wxPython # python setup.py install Found wx-config: /usr/local/bin/wx-config Using flags: --toolkit=gtk2...
1
by: Izzy | last post by:
I created a windows service using VS 2005 in VB.NET and it runs on my Windows XP Pro machine just fine, now I'm want to install it on one of my servers which is a Windows 2000 Terminal server...
0
by: luapyeltrah | last post by:
hi - I've been trying to get wxPython 2.8.4.0 installed on my Linux machine by following the instructions given by the BUILD document at the wxPython download site. I've been able to do the wxWidget...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.