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:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">