title: Running C++ program invisible
body: <pre><code>void Stealth()
  {
     HWND Stealth;
     AllocConsole();
     Stealth = FindWindowA("ConsoleWindowClass", NULL);
     ShowWindow(Stealth,0);
  }
  </code></pre>
  
  <p>I am calling this funtion from my main method in a C++ console application to hide the console window. It does it, but when I run the program the console window flashes for a split second before disappearing.</p>
  
  <p>I want to run the program without this window flashing fully invisible. How to do this?</p>