title: How can I rebuild an old library to work on a recent Visual Studio?
body: <p>I've been trying to learn Directx recently and started to read "Introduction to 3D Game Programming With DirectX 11" by Frank Luna. </p>
  
  <p>The book was being pretty interesting until I've encountered problems that I couldn't solve by my own. One of the first steps of the book is to compile one program that Frank Luna wrote, which is a Box drawn in DirectX, since the code he wrote in the book uses the Microsoft DirectX SDK(June 2010) I had to install it too, because apparently DirectX is now included in the Windows Kits which Windows 8 uses and, no longer supports D3DX(which is used in the book).</p>
  
  <p>The error that I encountered was this one:</p>
  
  <pre><code>Error   2   error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in Camera.obj
  </code></pre>
  
  <p>I found the answer by Luna himself (I think) <a href="http://www.d3dcoder.net/phpBB/viewtopic.php?f=2&amp;t=309" rel="nofollow">here</a>, but I don't know how to do that. </p>
  
  <p><strong>Luna says:</strong>
  You need to rebuild the Effects11 library with VS12. This forum post has more details:</p>
  
  <p><a href="http://www.d3dcoder.net/phpBB/viewtopic.php?f=4&amp;t=295" rel="nofollow">viewtopic.php?f=4&amp;t=295</a></p>
  
  <p><strong>Dreamcore asks:</strong> 
  How do I rebuild it? The post only said that I must rebuild it but now HOW TO rebuild it.</p>
  
  <p><strong>Luna answers:</strong> 
  In the June 2010 SDK there is the Effects11 project:</p>
  
  <p>E:\DXSDKJune10\Samples\C++\Effects11</p>
  
  <p>Open the solution and build in debug mode (naming the output Effects11d.lib) and in release mode (naming the output Effects11.lib). Then copy these two .lib to the book's common directory.</p>
  
  <p>Can someone tell me how do I build in debug and release mode and getting an output using visual studio 2013 professional? Effects11_2010.sln doesn't even compile neither in debug or release. It says unable to start the program.</p>
  
  <p>Thanks</p>