title: Microsoft SDK Version
body: <p>The error I am getting is here:</p>
  
  <pre><code>#if defined( _WIN32 )
      #ifndef WIN32
          #error error // error calls here
      #endif
  </code></pre>
  
  <p>I wrote a program in MS VS2008 that works fine, however when I transfer it over and compile it in MS VS2010, I get a bunch of errors.</p>
  
  <p>Some header files and libraries I include are as follows:</p>
  
  <pre><code>#include stdlib.h
  #include stdio.h
  #include stdlib.h
  #include io.h
  #include math.h
  #include mmsystem.h
  #include iostream
  
  #pragma comment(lib, "winmm.lib")
  #pragma comment(lib, "odbc32.lib")
  #pragma comment(lib, "odbccp32.lib")
  </code></pre>
  
  <p>Now, I think the problem is this. In VS2008, when I right click on mmsystem.h and say "open containing folder", it points me to: <code>C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Include</code></p>
  
  <p>Whereas in in VS2010 when I do this it points me to: <code>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include</code></p>
  
  <ol>
  <li>Could this be the source of the errors, and</li>
  <li>How could I make VS2010 point me to <code>v6.0A\Include</code> rather than <code>v7.0A\Include</code>?</li>
  </ol>
  
  <p>Thanks</p>