In C++, what is the standard way to remove the command prompt, without using WinMain()? This is hopefully a simple question. I am using MSVC.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you need to set
/SUBSYSTEM:WINDOWS(as opposed to/SUBSYSTEM:CONSOLE), you can do this in GUI (right click the project, properties, Linker, System, Subsystem).Then you have to either
WinMain, ormainand set the entry point tomainCRTStartup(properties, Linker, Advanced, entry point).