title: Why is "Use MFC in a Static Library" setting not followed when building a DLL with VS 2008?
body: <p>My goal is to create an MFC/C++ DLL that does not have any dependencies other than the basic Win32 DLLs. So I chose <code>"Use MFC in a Static Library"</code> setting in the project properties -> <code>General</code> -> <code>Use of MFC</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/y67Ob.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y67Ob.png" alt="enter image description here"></a></p>
  
  <p>but when I build this DLL and check the result with the <code>Dependency Walker</code> I get this:</p>
  
  <p><a href="https://i.stack.imgur.com/iVG36.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iVG36.png" alt="enter image description here"></a></p>
  
  <p>Showing dependencies on the following MFC Dlls:</p>
  
  <pre><code>MFC90U.DLL
  MSVCR90.DLL
  MSVCP90.DLL
  </code></pre>
  
  <p>So what am I doing wrong here?</p>
  
  <p>PS. I'm using Visual Studio 2008</p>