Console+Windows' form

前端 未结 3 1501
情书的邮戳
情书的邮戳 2021-01-23 18:04

Are there winAPI function (without classes) to create a daughter window from console application. It necessary to print graphics of shapes on window, and input commands to conso

3条回答
  •  长发绾君心
    2021-01-23 18:35

    Here is a much easier way that may work well for you, provided you're using Visual Studio:

    If you are, you can start a forms application by creating a forms project, add the necessary forms, and then change the application type (by right-clicking the project and selecting properties) and changing it to a console application. It will still spawn the form windows as you would expect, but will also start a Console window (which will still be populated by cout, etc...)!

提交回复
热议问题