title: How to get rid of the console window
body: <p>I have tried to make a simple <code>MessageBox</code> using this code:</p>
  
  <pre><code>#include &lt;windows.h&gt;
  
  int main() {
    MessageBox(NULL, "Hello", "Message Box", MB_OKCANCEL);
  }
  </code></pre>
  
  <p>But upon building this in the Dev-C++ IDE with the MinGW toolchain, I get a console window popping up behind the <code>MessageBox</code>.</p>
  
  <p>Is there a way to get rid of this console window?</p>