title: WTL 8.1 and Visual Studio 2010 Premium
body: <p>I have a weird problem with VS 2010 (Premium).</p>
  
  <ul>
  <li>just reinstalled it</li>
  <li>added the WTL library files</li>
  <li>installed the WTL wizard</li>
  <li>created a "dialog" project via the WTL wizard</li>
  <li>compiled and run the skeleton successfully</li>
  <li>added a button to the dialog </li>
  <li>compilation now fails complaining about undefined symbols (the button IDC_xxx)</li>
  <li>turned off pre-compiled headers</li>
  <li>cleaned solution, recompiled and run successfully</li>
  <li>added the "onClick" handler for the button (just by double clicking on the button, no code added)</li>
  <li>compilation fails complaining that <code>CUpdateUI</code> is not defined</li>
  <li>clean, reanalyze the solution, etc. doesn't solve the issue</li>
  </ul>
  
  <p>If I manually insert <code>#include</code>'s (e.g. <code>atlframe.h</code> for <code>CUpdateUI</code>) I can make it work but this defeat the purpose of using VS2010!</p>
  
  <p>What really annoys me is that I havent touched a single line of code, everything has been done through VS which, I hoped, should have cared for consistency!</p>
  
  <p>Is it my fault? WTL fault? VS Fault? Any suggestion on how I could fix this?</p>