title: ATL(atlalloc.h) generates errors while compiling
body: <p>The compiler rises a couple of errors while compiling my code.
  Errors:</p>
  
  <pre><code>Error   1   error C2039: 'AtlThrowImpl' : is not a member of 'ATL'  e:\program files\microsoft visual studio 9.0\vc\include\atlalloc.h  184
  Error   7   error C2039: 'AtlThrowImpl' : is not a member of 'ATL'  e:\program files\microsoft visual studio 9.0\vc\include\atlalloc.h  184
  Error   11  error C2039: 'AtlThrowImpl' : is not a member of 'ATL'  e:\program files\microsoft visual studio 9.0\vc\include\atlalloc.h  184
  Error   16  error C2039: 'AtlThrowImpl' : is not a member of 'ATL'  e:\program files\microsoft visual studio 9.0\vc\include\atlalloc.h  184
  Error   22  error C2039: 'AtlThrowImpl' : is not a member of 'ATL'  e:\program files\microsoft visual studio 9.0\vc\include\atlalloc.h  184
  </code></pre>
  
  <p>This is the code part of the header:</p>
  
  <pre><code>    template &lt;typename T&gt;
  inline T AtlThrow(T tLeft, T    tRight)
  {
      T tResult;
      HRESULT hr=AtlAdd(&amp;tResult, tLeft, tRight);
      if(FAILED(hr))
      {
          AtlThrow(hr);
      }
      return tResult;
  }
  </code></pre>
  
  <p>My question: How can i repair this errors from the header? Do i need to install some sdk's or something about ATL?</p>