title: How to get VC compiler version from PE file programmatically?
body: <p>The <a href="http://www.ntcore.com/exsuite.php" rel="nofollow noreferrer">CFF Explorer</a> is able to detect the VC complier version from PE file.
  it shows "Microsoft Visual C++ 8" for my exe file which is statically linked to libCMT(no dll dependency).</p>
  
  <p>How is that done?  It must replies on some structure in PE file which is unknown to me.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <ol>
  <li>CFF Explorer can get the correct VC complier version for a statically linked PE file (no DLL dependency to msvcmXX.dll, msvcpXX.dll or msvcrXX.dll)</li>
  <li>Even I cleared the LinkerVersion / ImageVersion / SubsytstemVersion / OperratingSystemVersion fields in PE optional header to ZERO, CFF explorer still can know the correct VC compiler version.</li>
  </ol>
  
  <p>Seems CFF explorer is using a much reliable way to detect VC compiler version.</p>