title: Black screen when trying to run DirectX application
body: <p>I have been trying to run a sample Directx-11 code from this website:<a href="http://www.rastertek.com/dx11tut02.html" rel="nofollow">tutorial 2</a>. (source code download at the end).</p>
  
  <p><strong><em>All I get when I try to run the program is a black screen.</em></strong></p>
  
  <p><strong>System Configuration:</strong></p>
  
  <ol>
  <li>Windows 7 64 bit (SP1)</li>
  <li>Intel Core i5 M520 @ 2.4Ghz</li>
  <li>RAM: 4GB</li>
  <li>Intel HD Graphics on core i5 (latest driver )</li>
  <li>Lenovo Think pad X201</li>
  </ol>
  
  <p><strong>IDE:</strong></p>
  
  <ol>
  <li>Microsoft Visual Studio 2013 </li>
  <li>Microsoft Visual Studio 2010 Express with Service Pack.</li>
  <li>I also installed DirectX 9 SDK from here: <a href="http://www.microsoft.com/en-us/download/details.aspx?id=6812" rel="nofollow">DirectX 9 SDK June 2010</a></li>
  </ol>
  
  <p><strong>Diagnostics:</strong></p>
  
  <ol>
  <li>I ran dxdiag and everything seems to be OK. (DirectDraw and Direct3D are enabled).</li>
  <li>I tried changing the refresh rate from 50Hz to 60Hz. (<em>Control Panel->Appearance &amp; Personalization->Display->Screen Resolution->Advanced Setting</em>)</li>
  <li>Could not change the hardware acceleration. "Change Settings" option was diabled under "Troubleshooting" tab in the above menu.</li>
  <li><em>System Settings-->Performance Options--></em>"Let Windows Choose What's Best For My Computer"</li>
  </ol>
  
  <p>How can I get this tutorial to run? My goal is to run any program in DirectX-11 on my laptop. I am using this to learn DirectX-11. Please let me know if I missed out some detail. </p>
  
  <p>Thank you very much!</p>