Wednesday, 30 October 2019

Windows exe with optional console

Today I had to change the console app I'd already built into something more silent, but a console was still required in some circumstances.

All I had to do was switch the output type (Properties > Application) to 'Windows Application' and add the following code:

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!