Windows console stuff

Here’s how to create a windows .exe without a console window, and without having to deal with the WinMain entry point:

  1. Just keep the “Console” subsystem selected in the project properties
  2. Add the following to the file containing your “int main(…)” entry point:

Also helpful: redirecting stdout/stderr using freopen: