Redirect stdout to an edit control (Win32)

后端 未结 3 397
终归单人心
终归单人心 2020-12-06 03:14

I have a simple Win32 GUI app which has an edit control in the main window. If I write:

printf(\"Hello world!\\n\");

I would like the text

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 03:55

    Write a internal __printf function can output the text to edit control, then replace all printf functions with that.

提交回复
热议问题