简体   繁体   中英

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

You should use /SUBSYSTEM:WINDOWS with WinMain .

Alternatively, you could hide the console.

ShowWindow(GetConsoleWindow(), SW_HIDE);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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