4 Replies
AllocConsole function - Windows Console
See reference information about the AllocConsole function, which allocates a new console for the calling process.
you'll need to call it and related functions with p/invoke
for example, declaring this will allow you to call it in C#
also i don't believe this will automatically set up the
Console
streams, so you may have to do that yourself if you aren't seeing any outputoh yeah I believe you're right I somewhat remember this being the issue i ran into a few nights ago when i tried
thank you
Alternatively, if you always want a console, change the OutputType to Exe. @ChezZ
Instead of WinExe.