Search code examples
c++windowsconsole

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


Solution

  • You should use /SUBSYSTEM:WINDOWS with WinMain.

    Alternatively, you could hide the console.

    ShowWindow(GetConsoleWindow(), SW_HIDE);