C++ How do I hide a console window on startup?

后端 未结 9 594
悲哀的现实
悲哀的现实 2021-02-01 05:43

I want to know how to hide a console window when it starts.

It\'s for a keylogger program, but it\'s not my intention to hack someone. It\'s for a littl

9条回答
  •  深忆病人
    2021-02-01 05:49

    Just change the type of your application from "Console application" to "Windows appplication" (and change your main to WinMain). In this case, your application will be started without console window at all.

提交回复
热议问题