title: Error loading type library/DLL
body: <p>When I use the following code I get an compilation error</p>
  
  <pre><code>#import &lt;dwmapi.lib&gt;
  #include &lt;dwmapi.h&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>fatal error C1083: Cannot open type
    library file: 'c:\program
    files\microsoft
    sdks\windows\v7.0a\lib\dwmapi.lib':
    Error loading type library/DLL.</p>
  </blockquote>
  
  <p>Intellisense says:</p>
  
  <blockquote>
    <p>2 IntelliSense: cannot open source
    file "c:/users/####/documents/visual
    studio
    2010/Projects/modlauch/modlauch/Debug/dwmapi.tlh":
    Bad file
    descriptor    c:\users\####\documents\visual
    studio
    2010\projects\modlauch\modlauch\modlauchdlg.cpp   7   1   modlauch</p>
  </blockquote>
  
  <p><strong>Does anyone know how to solve it?</strong> I'm sure that my 'dwmapi' library is fine and there is nothing wrong with it. I'm using MFC with VS2010 , but I don't think that is related to the problem. (Platform - <strong>Win32</strong>)</p>
  
  <p>If I get rid of "#import" then I get "unresolved external symbol __imp__DwmExtendFrameIntoClientArea@8" error.</p>