N
nwsgrp1
I wounder if anyone here can either direct me to the correct group to
answer this question or maybe explain to me how the cmd console
processes attributes. My problem is:
I have a GUI application that can detect if it's executed from a
command line. If it has all messageboxes are outputted as text to the
console. But when I try to redirect to a logfile like this
"c:\myapp_dir>myapp /? > logfile.log" it stops outputing to screen and
I get a ERROR_INVALID_HANDLE when calling WriteConsole() method. Also
"logfile.log" is empty.
Anybody know why? Or know where to look for possible answer?
Regards,
Carl.
answer this question or maybe explain to me how the cmd console
processes attributes. My problem is:
I have a GUI application that can detect if it's executed from a
command line. If it has all messageboxes are outputted as text to the
console. But when I try to redirect to a logfile like this
"c:\myapp_dir>myapp /? > logfile.log" it stops outputing to screen and
I get a ERROR_INVALID_HANDLE when calling WriteConsole() method. Also
"logfile.log" is empty.
Anybody know why? Or know where to look for possible answer?
Regards,
Carl.