I know that you can create a separate console application, however, I am in the final stages of testing and my application does not have an interface. Is there a way to simply open a console and interact with that inside the desktop application? This would be in a test method. (I am using C#, in Visual Studio 2008).
Thanks,
badPanda
You might be able to do what you want using
AllocConsole(creates a new console) orAttachConsole(attaches to an existing console), but I think there are some limitations to what you can do with them.See here for the API documentation for
AllocConsoleand here‘s the PInvoke page.Here‘s a list of lots of Console functions, might be something else useful there too.