c++ - Removing the command prompt -


In C ++, what is the standard way to delete a command prompt without using WinMain ()? It is a simple question that I am using MSVC.

You must first set up / SUBSYSTEM: WINDOWS (as < Code> / SUBSYSTEM: CONSOLE is opposed to ), you can do this in GUI (right click on project, property, linker, system, subsystem).

Then define either

  1. defined WinMain , or
  2. main And set entry point to mainCRTStartup (property, linker, advanced, entry point).

Comments