[Box Backup-dev] Logging
Charles Lecklider
boxbackup-dev at fluffy.co.uk
Fri Dec 23 22:57:07 GMT 2005
Chris Wilson wrote:
> Hi Charles,
>
>> Don't forget that a Win32 service can have a console too; it's
>> incredibly handy if you want to see what's going on, but don't want to
>> fill the eventlog. Once you've persuaded the RTL that stdout/stderr
>> really do have someplace to go, everything works just like a normal
>> console app.
>
>
> Where can I find out more about how to persuade the RTL and how to open
> the console window?
http://msdn.microsoft.com/library/en-us/dllproc/base/allocconsole.asp
AllocConsole gets you a new console with some handles. I have no idea
how you persuade the VC RTL to use it - I've only ever done it with
Watcom (and that's trivial - just call __NTConsoleOutput).
-C
More information about the Boxbackup-dev
mailing list