我们如何防止在Visual Studio下显示控制台窗口?

Gui*_*e07 2 c++ windows winapi console-application visual-studio

当我们在Visual Studio下启动应用程序时,是否可以(以及如何)禁用控制台窗口的显示?

编辑:

一些准确性:

我在这个项目的开头没有GUI系统.我第二次将QT gui添加到这个项目中.目前,当我启动我的应用程序时,我有控制台系统和QT的MainWindow

我想禁用控制台系统

Alo*_*ave 5

您只需使用应用程序而不是控制台应用程序.要做到这一点:

将子系统更改为Windows.你可以在下面找到它:

Properties ---> Linker ---> System 
Run Code Online (Sandbox Code Playgroud)

并替换

int _tmain(int argc, _TCHAR* argv[]) 
Run Code Online (Sandbox Code Playgroud)

int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) 
Run Code Online (Sandbox Code Playgroud)