This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DllImport("kernel32.dll")] | |
public static extern Boolean AllocConsole(); | |
[DllImport("kernel32.dll")] | |
public static extern Boolean FreeConsole(); |
reference
Console Output from a WinForms Application
onsole redirect output and continue to write also in the console
沒有留言:
張貼留言