title: C++, using environment variables for paths
body: <p>is there any way to use environment variables in c++ for path to file?
  Idea is to use them without expending so I don't need to use <code>wchar</code> for languages with unicode standard when I want to save/read file.</p>
  
  <p>//EDIT</p>
  
  <p>Little edit with more explanations.</p>
  
  <p>So what I try to achieve is to read/write to file without worrying about characters in path. So I don't want to use <code>wchar</code> as path but it should work if path contains some wide chars.</p>
  
  <p>There are functions <code>getenv</code> and <code>GetEnvironmentVariable</code> but they need to set proper language in <code>Language for non-Unicode programs</code> in windows settings (<code>Constrol Panel</code> -> <code>Clock, Language, and Region</code> -> <code>Region and Language</code> -> <code>Administrative</code>) which need some actions from users and this is something that I try to avoid.</p>