title: Starting .bin file as an executable
body: <p>I'm writing a console program for Windows and I need to open another program. My problem is that the executable of this program has the <code>.bin</code> extension and my code won't open it as a program.</p>
  
  <p>Also, when my console is starting I'd like to hide it. I've written some code to do this but it appears and then quickly dissapears.</p>
  
  <p>My code:</p>
  
  <pre><code>#define _WIN32_WINNT 0x0500 
  #include &lt;windows.h&gt; 
  #include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;fstream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  
  int main()
  {
      HWND hWnd = GetConsoleWindow(); 
      ShowWindow( hWnd, SW_HIDE ); 
      system("start client.bin --argument");
      return 0;
  }
  </code></pre>