title: Visual Studio 2008 cannot find header that is in build path
body: <p>Edit: I do not understand WHY this fixed the problem, but I added the include and lib directories to Tools>Options>Projects&amp;Solutions>VC++Directories and it built perfectly.</p>
  
  <p>I'm trying to compile a c++ example project distributed by Autodesk in VS 2008.</p>
  
  <p>The error:
  fatal error C1083: Cannot open include file: 'max.h': No such file or directory</p>
  
  <p>Previously when I have encountered this error it has been caused by forgetting to specify the location of a header in Project>Properties>Configuration>C++>General. However, the path is definitely there this time and I can navigate to that directory and open max.h manually.</p>
  
  <p>This project builds a DLL instead of an executable. Could that cause this?</p>
  
  <p>So as an experiment I wrote the complete path for max.h after the #include directive in the source. Compile successful! </p>
  
  <pre><code>Linking failed:
  fatal error LNK1181: cannot open input file 'edmodel.lib'
  </code></pre>
  
  <p>Yes edmodel.lib is located in a directory specified in Project>Properties>Configuration>Linker>General.</p>
  
  <p>Any insight into what might be going on here would be appreciated.</p>