禁用显示控制台窗口 [英] Disable showing console window

查看:215
本文介绍了禁用显示控制台窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

在控制台应用程序中,goto

p>

 属性>接头>系统

更改 SubSystem Windows



并在您的代码中
替换

  int _tmain(int argc,_TCHAR * argv [])

  int APIENTRY _tWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow)

并添加

  #include< windows .h> 

这应该避免在控制台应用程序中显示控制台窗口。


Where I can disable in Microsoft-Visual-C++ showing console window?

解决方案

In your console application, goto

Properties > Linker > System 

change SubSystem to Windows

and in your code replace

int _tmain(int argc, _TCHAR* argv[])

with

int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)

and add

#include <windows.h>

This should avoid showing a console window in your console application.

这篇关于禁用显示控制台窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆