title: How do I extract `$Platform` and `$config` from the dproj file
body: <p>I want to extend <a href="http://code.google.com/p/gpprofile2011/wiki/GpProfile" rel="nofollow">GPProfile</a> so it also works with XE2.  </p>
  
  <p>The problem why it does not is that it does not know how to translate the file path in XE2's .dproj file.</p>
  
  <p>The following error occurs:</p>
  
  <blockquote>
    <p>Exception class EOSError with message TGpHugeFile.AccessFile(C:\Users\Johan\Documents\RAD Studio\Projects\project8\ <strong>$(Platform)\$(Config)</strong> \Project8.gpd) failed. Win32 Error.  Code: 3.
    System cannot find the given path.'</p>
  </blockquote>
  
  <p>The program extracts the path, but does not know how to translate the <code>$platform</code> and <code>$config</code> variables.  </p>
  
  <p>Whilst it's easy enough to hardcode these vars to <code>Win32/Win64</code> and <code>Release/Debug</code> respectively, I'd like to do it properly. By which I mean that I want to extract the values that the IDE saves to the .dproj file which are the selected values of the variables when the files is saved.</p>
  
  <p><strong>How do I extract the these values from the <code>.dproj</code> file?</strong> </p>