<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dateiversion als string]]></title><description><![CDATA[<p>Also, ich habe folgenden Code, um Versionsinformationen aus einer (dll)Datei zu holen:</p>
<pre><code class="language-cpp">int getFileVersion(char* szFileName)
{
  DWORD dwHandle;
  LPVOID vData = NULL;
  VS_FIXEDFILEINFO *fInfo = NULL;
  DWORD dwSize = GetFileVersionInfoSize(szFileName, &amp;dwHandle);

  ULONGLONG fileVersion = 0;
  vData = malloc(dwSize);

  GetFileVersionInfo(szFileName, dwHandle, dwSize, vData);

  UINT len;

  VerQueryValue(vData, _T(&quot;\\&quot;), (LPVOID*) &amp;fInfo, &amp;len);

  return fInfo-&gt;dwFileVersionMS;
}
</code></pre>
<p>Wie kann ich aus dieser Zahl, die ich jetzt erhalte, die einzelnen Teile ermitteln? (also dass ich beispielsweise auf 5.8.3.12 komme)<br />
danke schonmal!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/218782/dateiversion-als-string</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 00:33:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/218782.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Jul 2008 08:55:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dateiversion als string on Fri, 25 Jul 2008 08:55:02 GMT]]></title><description><![CDATA[<p>Also, ich habe folgenden Code, um Versionsinformationen aus einer (dll)Datei zu holen:</p>
<pre><code class="language-cpp">int getFileVersion(char* szFileName)
{
  DWORD dwHandle;
  LPVOID vData = NULL;
  VS_FIXEDFILEINFO *fInfo = NULL;
  DWORD dwSize = GetFileVersionInfoSize(szFileName, &amp;dwHandle);

  ULONGLONG fileVersion = 0;
  vData = malloc(dwSize);

  GetFileVersionInfo(szFileName, dwHandle, dwSize, vData);

  UINT len;

  VerQueryValue(vData, _T(&quot;\\&quot;), (LPVOID*) &amp;fInfo, &amp;len);

  return fInfo-&gt;dwFileVersionMS;
}
</code></pre>
<p>Wie kann ich aus dieser Zahl, die ich jetzt erhalte, die einzelnen Teile ermitteln? (also dass ich beispielsweise auf 5.8.3.12 komme)<br />
danke schonmal!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1553408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1553408</guid><dc:creator><![CDATA[Powerpaule]]></dc:creator><pubDate>Fri, 25 Jul 2008 08:55:02 GMT</pubDate></item><item><title><![CDATA[Reply to Dateiversion als string on Fri, 25 Jul 2008 10:09:48 GMT]]></title><description><![CDATA[<p>Problem geloest!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1553461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1553461</guid><dc:creator><![CDATA[Powerpaule]]></dc:creator><pubDate>Fri, 25 Jul 2008 10:09:48 GMT</pubDate></item></channel></rss>