Create window console inside main win32 window

后端 未结 4 1963
有刺的猬
有刺的猬 2021-02-20 02:20

I have a win32 application that need to open a console like the games when tilde is pressed. I tought that the best solution is to use the CreateWindow function. Is this right?

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-20 02:43

    I found this little tutorial / code samples useful. http://www.halcyon.com/~ast/dload/guicon.htm

    It creates a console and redirects STD_IN and STD_OUT to the console. So you can easily use std::cin and std::cout etc streams.

提交回复
热议问题