当前位置:网站首页>WinForm project console debugging mode

WinForm project console debugging mode

2022-06-22 02:18:00 Giser_ D

Call the method , When the console is started , Will start the command

        /// <summary>
        ///  Launch the console 
        /// </summary>
        /// <returns></returns>
        [DllImport("kernel32.dll")]
        public static extern Boolean AllocConsole();

        /// <summary>
        ///  free console 
        /// </summary>
        /// <returns></returns>
        [DllImport("kernel32.dll")]
        public static extern Boolean FreeConsole();
原网站

版权声明
本文为[Giser_ D]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220056500549.html