title: Loading an icon in Windows program
body: <p>I'm trying to set a custom icon into my program but nothing happens.</p>
  
  <ol>
  <li>I created an icon using <a href="http://www.xiconeditor.com/" rel="noreferrer">this tool</a>.</li>
  <li><p>I created a resource file with contents:</p>
  
  <pre><code>MYICON1 ICON  "glider.ico"
  </code></pre></li>
  <li><p>I added the resource file into my Visual Studio 2013 project and set its type to "Resource Compiler". Type "Resource" doesn't work ("invalid or corrupt file: cannot read at 0x1A")</p></li>
  <li><p>I load the icon with the following code when creating a window:</p>
  
  <pre><code>wc.hIcon = LoadIcon( hInstance, MAKEINTRESOURCE( MYICON1 ) ); // MYICON1 is defined in Resource.h as 101.
  </code></pre></li>
  </ol>