How to get %AppData% path as std::string?
<p>I've read that one can use <code>SHGetSpecialFolderPath();</code> to get the AppData path. However, it returns a <code>TCHAR</code> array. I need to have an <code>std::string</code>.</p>

<p>How can it be converted to an <code>std::string</code>?</p>

<p><strong>Update</strong></p>

<p>I've read that it is possible to use <code>getenv("APPDATA")</code>, but that it is not available in Windows XP. I want to support Windows XP - Windows 10.</p>