It's not a DLL. It's an executable. But now I'm noticing that
Console.WriteLine statements are ignored (only sent to VS Debugger
Console window) if the app is compiled as a Windows Application.
I'm trying to create a Windows Application that can also be batch run
from the command prompt. But I need to know where to send my error
messages. And now, I have the added task of getting my Console output
to show up.
If I compile as a Console Application, there's an ugly black window that
won't go away. But it can still popup MessageBox messages, and display
windows forms.
If I compile as a Windows Application, Console Output is not shown when
run from the command line, but the black window is gone.
What's going on here, and how can I make it work? What I'd like to do is
to run my application executable, and depending on what command line
parameters are sent to it, to either just output some text to the
console, or to enter the full "interactive" mode. I'd rather not make
them 2 seperate applications.