title: Unable to call SHGetKnownFolderPath() even with #include <Shlobj.h> and #pragma comment (lib, "Shell32.lib")
body: <p><em>(Visual Studio 2010 / Visual C++ / Windows 7)</em></p>
  
  <p>example.cpp:</p>
  
  <pre><code>#include &lt;Shlobj.h&gt;
  #pragma comment (lib, "Shell32.lib")    
  ...
  void example()
  {
      SHGetKnownFolderPath(...) // undefined
  }
  </code></pre>
  
  <p>I'm doing everything according to <a href="http://msdn.microsoft.com/en-us/library/bb762188.aspx" rel="nofollow">documentation</a> and what I see in other threads, but it still doesn't work.</p>