title: How to get program path
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/933850/how-to-find-the-location-of-the-executable-in-c">how to find the location of the executable in C</a>  </p>
  </blockquote>
  
  
  
  <p>I'm writting an multi-platform app in C++ using GTK+ and I have a problem. I must get program path. E.g., when program is in <code>/home/user/program</code> (or <code>C:\Users\user\program.exe</code>), i have <code>/home/user/</code> (or <code>C:\Users\user\</code>).</p>
  
  <p>Can and how I can do this?</p>