Embedding a DOS console in a windows form

前端 未结 3 1296
盖世英雄少女心
盖世英雄少女心 2020-11-27 16:34

Is it possible to embed a DOS console in a Windows Form or User Control in C# 2.0?

We have a legacy DOS product that my Windows app has to interact with, and it\'s b

3条回答
  •  佛祖请我去吃肉
    2020-11-27 16:59

    You can use the CreateProcess function and the hStdInput, Output, and Error members of the STARTUPINFO argument, this will allow you to intercept standard input and output of the application.

提交回复
热议问题