<?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[weiteres thread-problem]]></title><description><![CDATA[<p>Moin,</p>
<p>bisher habe ich immer _beginthread([...]); benutzt - ohne probleme.</p>
<p>Doch jetzt... gibt mir mein minGW (Developer Studios) folgendes aus:</p>
<pre><code>mainServer.cpp:129: error: invalid conversion from `void (*)(AnwahlStruct*)' to `void (*)(void*)'
</code></pre>
<p>die entsprechende codezeile dazu ist</p>
<pre><code class="language-cpp">_beginthread(AnwahlVorbereitung, 0, &amp;ServerInfos);
</code></pre>
<p>, vorher gibt es noch ein</p>
<pre><code class="language-cpp">static struct AnwahlStruct ServerInfos;

//...
//und

ServerInfos.hWnd = hWnd;
ServerInfos.hServerStatus = hServerStatus;
</code></pre>
<p>Die Aufgerufene funktion:</p>
<pre><code class="language-cpp">void AnwahlVorbereitung(AnwahlStruct *Infos)
{
</code></pre>
<p>und so weiter.</p>
<p>ich habe echt üüüüüberhaupt keine ahnung, was der compiler zu meckern hat.</p>
<p>p.s.: ich habe schon begriffen, dass ihm etwas mit type-casting nicht gefällt, allerdings weiß ich niocht, warum der fehler JETZT auftritt</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/118372/weiteres-thread-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 18:29:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/118372.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Aug 2005 18:34:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to weiteres thread-problem on Wed, 17 Aug 2005 18:34:39 GMT]]></title><description><![CDATA[<p>Moin,</p>
<p>bisher habe ich immer _beginthread([...]); benutzt - ohne probleme.</p>
<p>Doch jetzt... gibt mir mein minGW (Developer Studios) folgendes aus:</p>
<pre><code>mainServer.cpp:129: error: invalid conversion from `void (*)(AnwahlStruct*)' to `void (*)(void*)'
</code></pre>
<p>die entsprechende codezeile dazu ist</p>
<pre><code class="language-cpp">_beginthread(AnwahlVorbereitung, 0, &amp;ServerInfos);
</code></pre>
<p>, vorher gibt es noch ein</p>
<pre><code class="language-cpp">static struct AnwahlStruct ServerInfos;

//...
//und

ServerInfos.hWnd = hWnd;
ServerInfos.hServerStatus = hServerStatus;
</code></pre>
<p>Die Aufgerufene funktion:</p>
<pre><code class="language-cpp">void AnwahlVorbereitung(AnwahlStruct *Infos)
{
</code></pre>
<p>und so weiter.</p>
<p>ich habe echt üüüüüberhaupt keine ahnung, was der compiler zu meckern hat.</p>
<p>p.s.: ich habe schon begriffen, dass ihm etwas mit type-casting nicht gefällt, allerdings weiß ich niocht, warum der fehler JETZT auftritt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/854413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/854413</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Wed, 17 Aug 2005 18:34:39 GMT</pubDate></item><item><title><![CDATA[Reply to weiteres thread-problem on Wed, 17 Aug 2005 18:38:57 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void AnwahlVorbereitung(void* p)
{
    AnwahlStruct* pInfos = reinterpret_cast&lt;AnwahlStruct*&gt;(p);
}

_beginthread(AnwahlVorbereitung, 0, reinterpret_cast&lt;void*&gt;(&amp;ServerInfos));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/854414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/854414</guid><dc:creator><![CDATA[reinterpret]]></dc:creator><pubDate>Wed, 17 Aug 2005 18:38:57 GMT</pubDate></item><item><title><![CDATA[Reply to weiteres thread-problem on Wed, 17 Aug 2005 18:46:51 GMT]]></title><description><![CDATA[<p>Danke, ich habe es etwas anders gemacht, aber jetzt funktioniert es.<br />
Wieso ging das vorher immer?</p>
<p>Euer ItsNotYou</p>
]]></description><link>https://www.c-plusplus.net/forum/post/854418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/854418</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Wed, 17 Aug 2005 18:46:51 GMT</pubDate></item></channel></rss>