项目属性 -> 链接器 -> 系统 -> 子系统 选择为:为窗口SUBSYSTEM:WINDOWS 转发自:https://blog.csdn.net/LiFangHui_/article/details/90549392