title: Resizing Console window C++
body: <p>AoA
     I have made a solitaire game in console window by using system("mode CON: COLS=140");
  I dont know what happened but when I run the program now, it prints an error showing "mode not recognized" and the console width is set to 78 size (default), whereas the program(solitaire) runs fine on other machines.</p>
  
  <pre><code>RECT r;
  HWND console = GetConsoleWindow();
  GetWindowRect(console, &amp;r); //stores the console's current dimensions
  MoveWindow(console, r.left, r.top, 800, 600, TRUE);
  </code></pre>
  
  <p>this function runs upto 800x600 pixels(which is default), increasing the pixels shows no effect..
  Is there any other way to increase the width of console width ?</p>