title: FillConsoleOutputCharacter/WriteConsoleOutput and special characters
body: <p>I'm messing with some of the native windows console functions, and am impressed by their speed,if not their ease of use. </p>
  
  <p>Anyway, I have long known that the following code will produce some interesting characters</p>
  
  <pre><code>for(int i = 0; i &lt; 256; i++)
  {
      cout &lt;&lt; char(i) &lt;&lt; endl;
  }
  </code></pre>
  
  <p>However, I cannot get FillConsoleOutputCharacter  or WriteConsoleOutput to produce all of those characters (many simply appear as question marks).</p>
  
  <p>Here is an example of the code I am using:</p>
  
  <pre><code>COORD spot = {0,0};
  HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
  DWORD Written;
  
  for(int i = 0; i &lt; 256; i++)
  {
      FillConsoleOutputAttribute(hOut, 7, 1, spot, &amp;Written);
      FillConsoleOutputCharacterW(hOut, char(i), 1, spot, &amp;Written);
  
      spot.Y++;
  }
  </code></pre>
  
  <p>Does anyone know of a relatively convenient way to write those characters with the native functions?</p>
  
  <p>By the way, I am using Visual Studio 2010 on Windows 7 x64.</p>