简体   繁体   English

c++问题 | 我不想在程序运行时打开控制台

[英]c++ problem | i want to NOT open the console while an program running

Ya know the console opens everytime when u execute an c++ script in any way i am making currently an GDI effect and this Console shows in the background up Here is the script but i dont think the script affects everything:/ enter image description here你知道控制台每次当你以任何方式执行 c++ 脚本时都会打开,我目前正在制作 GDI 效果,这个控制台在后台显示 这是脚本,但我不认为脚本会影响一切:/在此处输入图像描述

You should use /SUBSYSTEM:WINDOWS with WinMain .您应该将/SUBSYSTEM:WINDOWSWinMain一起使用。

Alternatively, you could hide the console.或者,您可以隐藏控制台。

ShowWindow(GetConsoleWindow(), SW_HIDE);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM