471,306 Members | 1,289 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How to catch Console window content from windows project?


I have a DLL that display message in the Console window. My program was
previously compiled as a console project and the output was readable
from the shell/dos window. Now that my project is compiled as a windows
project, I don't have the shell/dos window anymore, how can I get the
previous output to be displayed in a listbox?

I can see it from the output window of VS.NET but I want it from the
application itself.

Dec 15 '05 #1
1 1428
Why dont you ouput messages to a file?
Or otherwise instead of all the Console.WriteLines just output all
status messages to a stream in code, and have a command line parameter
that decides whether that stream is bound to a file, to the console, or
to some other stream.

That will let you do what you want and also give you a lot of

Dec 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Eric Nelson | last post: by
2 posts views Thread by Boba | last post: by
12 posts views Thread by Jarod_24 | last post: by
7 posts views Thread by Abelard | last post: by
2 posts views Thread by ssg31415926 | last post: by

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.