<?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[GetVersionEx will nicht so wie ich]]></title><description><![CDATA[<p>Moin,<br />
will der Funktion &quot;GetVersionEx&quot; ne &quot;OSVERSIONINFOEX&quot; Struktur übergeben.<br />
Doch leider klappt des ned so.<br />
Hier mein Code:</p>
<pre><code class="language-cpp">OSVERSIONINFOEX info_sp;
	  info_sp.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);

	  if((GetVersionEx(&amp;info_sp)) != 0) {
</code></pre>
<p>Erhalte folgende Fehlermeldung:</p>
<pre><code>D:\test\info.c(45) : warning C4133: 'function' : incompatible types - from 'struct _OSVERSIONINFOEXA *' to 'struct _OSVERSIONINFOA *'
</code></pre>
<p>In der MSDN steht aber:</p>
<blockquote>
<p>An OSVERSIONINFO or OSVERSIONINFOEX structure that receives the operating system information.</p>
</blockquote>
<p>Brauche schnell hilfe da mich sonst das ganze ziemlich aufhält.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/239108/getversionex-will-nicht-so-wie-ich</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 14:31:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/239108.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Apr 2009 15:29:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetVersionEx will nicht so wie ich on Sun, 19 Apr 2009 15:29:01 GMT]]></title><description><![CDATA[<p>Moin,<br />
will der Funktion &quot;GetVersionEx&quot; ne &quot;OSVERSIONINFOEX&quot; Struktur übergeben.<br />
Doch leider klappt des ned so.<br />
Hier mein Code:</p>
<pre><code class="language-cpp">OSVERSIONINFOEX info_sp;
	  info_sp.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);

	  if((GetVersionEx(&amp;info_sp)) != 0) {
</code></pre>
<p>Erhalte folgende Fehlermeldung:</p>
<pre><code>D:\test\info.c(45) : warning C4133: 'function' : incompatible types - from 'struct _OSVERSIONINFOEXA *' to 'struct _OSVERSIONINFOA *'
</code></pre>
<p>In der MSDN steht aber:</p>
<blockquote>
<p>An OSVERSIONINFO or OSVERSIONINFOEX structure that receives the operating system information.</p>
</blockquote>
<p>Brauche schnell hilfe da mich sonst das ganze ziemlich aufhält.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1698215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1698215</guid><dc:creator><![CDATA[Mr Bibber]]></dc:creator><pubDate>Sun, 19 Apr 2009 15:29:01 GMT</pubDate></item><item><title><![CDATA[Reply to GetVersionEx will nicht so wie ich on Sun, 19 Apr 2009 15:36:41 GMT]]></title><description><![CDATA[<p>casten!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1698216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1698216</guid><dc:creator><![CDATA[mr caster]]></dc:creator><pubDate>Sun, 19 Apr 2009 15:36:41 GMT</pubDate></item><item><title><![CDATA[Reply to GetVersionEx will nicht so wie ich on Sun, 19 Apr 2009 15:40:05 GMT]]></title><description><![CDATA[<p>Ich will aber auf die folgenden Werte der Struktur zugreifen:</p>
<pre><code>wServicePackMajor
wServicePackMinor
</code></pre>
<p>Und wenn ich caste ist mir das doch nicht mehr möglich oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1698218</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1698218</guid><dc:creator><![CDATA[Mr Bibber]]></dc:creator><pubDate>Sun, 19 Apr 2009 15:40:05 GMT</pubDate></item><item><title><![CDATA[Reply to GetVersionEx will nicht so wie ich on Sun, 19 Apr 2009 16:38:00 GMT]]></title><description><![CDATA[<p>Versuch macht kluch. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1698236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1698236</guid><dc:creator><![CDATA[sri]]></dc:creator><pubDate>Sun, 19 Apr 2009 16:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to GetVersionEx will nicht so wie ich on Mon, 20 Apr 2009 12:09:29 GMT]]></title><description><![CDATA[<p>Guckst du <a href="http://www.miu4u.at" rel="nofollow">www.miu4u.at</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1698572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1698572</guid><dc:creator><![CDATA[Mr Bibber]]></dc:creator><pubDate>Mon, 20 Apr 2009 12:09:29 GMT</pubDate></item><item><title><![CDATA[Reply to GetVersionEx will nicht so wie ich on Mon, 20 Apr 2009 21:38:26 GMT]]></title><description><![CDATA[<p>Ist aber so gedacht.</p>
<p>GetversionEx erkennt am dwOSVersionInfoSize, welche struktur verwendet wird und kann entsprechend zurückcasten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1698896</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1698896</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Mon, 20 Apr 2009 21:38:26 GMT</pubDate></item></channel></rss>