title: c++ GetPrivateProfileString read ini file from current directory
body: <p>I'm creating a dll on c++. It is a Visual Studio project. The dll reads some data from ini file. I have decided to use GetPrivateProfileString function. It works almost completely. It does not see file in current directory. How can I provide this parameter (variable called path)?</p>
  
  <p>How can I pass last parameter (path)</p>
  
  <p>Code:</p>
  
  <pre><code>LPCTSTR path = L"\\test.ini";
  TCHAR protocolChar[32];
  int a = GetPrivateProfileString(_T("Connection"), _T("Protocol"), _T(""), protocolChar, 32, path);
  </code></pre>
  
  <p>String from test.ini:</p>
  
  <pre><code>[Connection]
  Protocol = HTTP
  </code></pre>
  
  <p>I also tried this:</p>
  
  <pre><code>LPCTSTR path = L"test.ini";
  </code></pre>
  
  <p>But it did not help me</p>