title: Cant find the path to local json file, C++
body: <p>I have following C++ code:</p>
  
  <p>{</p>
  
  <pre><code>boost::property_tree::ptree propTree;
  auto module = GetModuleHandleW(nullptr);
  WCHAR path[MAX_PATH];
  GetModuleHandleW(module, path, MAX_PATH); 
  
  // path above is same as the directory in which following config.json is present - I can see that in 
  // debugger.
  
  read_json("config.json", propTree);
  </code></pre>
  
  <p>}</p>
  
  <p>so basically my application(exe) is running from the same directory as the json file. still it cant seem to find the json file. The exe finds the json just fine if I provide absolute/full path.</p>
  
  <p>Any idea what am I doing wrong here?</p>