<?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[BeginThread Problem]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Problem beim erzeugen eines Threads. Ich möchte mit BeginThread einen Thread vom Hauptthread abzweigen:</p>
<pre><code>BeginThread(NULL,0,Player,(void*)p,NULL, dwThreadId);
</code></pre>
<p>Player ist die Thread-Funktion, p ist eine Variable die Übergeben werden soll.<br />
Hier die Thread-Funktion:</p>
<pre><code>void Player(void* value)
{
}
</code></pre>
<p>Ich bekomme vom Compiler die Fehlermeldung: &quot;Cannot convert void(<em>)(void</em>) to int (__fastcall*)(void*)&quot;<br />
Kann mir jemand sagen was ich bei dem Thread-Aufruf falsch gemacht habe?<br />
P.S.: Ich benutze den BCB</p>
<p>Danke &amp; Liebe Grüße,</p>
<p>Seddto</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/86796/beginthread-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 18:13:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/86796.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Sep 2004 15:06:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BeginThread Problem on Wed, 22 Sep 2004 15:06:32 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Problem beim erzeugen eines Threads. Ich möchte mit BeginThread einen Thread vom Hauptthread abzweigen:</p>
<pre><code>BeginThread(NULL,0,Player,(void*)p,NULL, dwThreadId);
</code></pre>
<p>Player ist die Thread-Funktion, p ist eine Variable die Übergeben werden soll.<br />
Hier die Thread-Funktion:</p>
<pre><code>void Player(void* value)
{
}
</code></pre>
<p>Ich bekomme vom Compiler die Fehlermeldung: &quot;Cannot convert void(<em>)(void</em>) to int (__fastcall*)(void*)&quot;<br />
Kann mir jemand sagen was ich bei dem Thread-Aufruf falsch gemacht habe?<br />
P.S.: Ich benutze den BCB</p>
<p>Danke &amp; Liebe Grüße,</p>
<p>Seddto</p>
]]></description><link>https://www.c-plusplus.net/forum/post/612939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/612939</guid><dc:creator><![CDATA[seddto]]></dc:creator><pubDate>Wed, 22 Sep 2004 15:06:32 GMT</pubDate></item><item><title><![CDATA[Reply to BeginThread Problem on Wed, 22 Sep 2004 18:18:11 GMT]]></title><description><![CDATA[<p>seddto schrieb:</p>
<blockquote>
<p>Cannot convert void(<em>)(void</em>) to int (__fastcall*)(void*)</p>
</blockquote>
<p>Hi,<br />
das bedeuted du hast eine void(<em>)(void</em>) Funktion er erwartet aber eine int (__fastcall*)(void*) Funktion und kann deine void BlaBla(void*) nicht in eine inf __fastcall BlaBla(void*) konvertieren...</p>
<p>Nun überleg mal was du machen musst....</p>
<p>MfG</p>
<p>Alexander Sulfrian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/613126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/613126</guid><dc:creator><![CDATA[Alexander Sulfrian]]></dc:creator><pubDate>Wed, 22 Sep 2004 18:18:11 GMT</pubDate></item><item><title><![CDATA[Reply to BeginThread Problem on Wed, 22 Sep 2004 19:14:58 GMT]]></title><description><![CDATA[<p>mhh genau das weiss ich ja eben nicht. Ich habe die Thread-Funktion nicht als Integer definiert, woher kommt also der int? Ich hab keine Ahnung wie ich das konvertieren soll <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> Vielleicht kann mir jemand weiterhelefen?</p>
<p>Danke &amp; LG Seddto</p>
]]></description><link>https://www.c-plusplus.net/forum/post/613159</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/613159</guid><dc:creator><![CDATA[seddto]]></dc:creator><pubDate>Wed, 22 Sep 2004 19:14:58 GMT</pubDate></item><item><title><![CDATA[Reply to BeginThread Problem on Wed, 22 Sep 2004 22:04:04 GMT]]></title><description><![CDATA[<p>Ich denke mal das Du falsch vorgegangen bist.</p>
<p>Warum willst Du denn die Winapi Funktion benutzen ?</p>
<p>Der BCB stellt dir doch Thread Objecte zur Verfügung.</p>
<p>Schau mal in die Hilte zu TThread. In der FAQ steht sicher auch was und wenn Du nach Threads hier im Forum suchst bekommst Du sicher ne ganze menge ergebnisse.</p>
<p>Und es gibt auch ne Tutorial Seite (Habe gerade die URL nicht) die findest du sicher wenn du das Forum durchsuchst.</p>
<p>Foxy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/613283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/613283</guid><dc:creator><![CDATA[Fox-Alpha]]></dc:creator><pubDate>Wed, 22 Sep 2004 22:04:04 GMT</pubDate></item><item><title><![CDATA[Reply to BeginThread Problem on Thu, 23 Sep 2004 07:46:29 GMT]]></title><description><![CDATA[<p>Wenn du vorher den Thread geschrieben und eingebunden hast ist</p>
<pre><code>new TMyThread(false);
</code></pre>
<p>alles was du brauchst um ihn zu starten.</p>
<p>Schon hier geschaut: <a href="http://bcb-tutorial.c-plusplus.net/Thread/index.html" rel="nofollow">http://bcb-tutorial.c-plusplus.net/Thread/index.html</a> ?</p>
<p>Gruss</p>
<p>robi1806</p>
]]></description><link>https://www.c-plusplus.net/forum/post/613370</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/613370</guid><dc:creator><![CDATA[robi1806]]></dc:creator><pubDate>Thu, 23 Sep 2004 07:46:29 GMT</pubDate></item><item><title><![CDATA[Reply to BeginThread Problem on Thu, 23 Sep 2004 08:58:59 GMT]]></title><description><![CDATA[<p>seddto schrieb:</p>
<blockquote>
<p>Ich habe die Thread-Funktion nicht als Integer definiert, woher kommt also der int?</p>
</blockquote>
<p>Hi,<br />
genau das ist der Fehler!<br />
Er erwartet eine int __fastcall Funktion....</p>
<p>MfG</p>
<p>Alexander Sulfrian</p>
<p>PS: Einach die Funktion umdefinieren....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/613468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/613468</guid><dc:creator><![CDATA[Alexander Sulfrian]]></dc:creator><pubDate>Thu, 23 Sep 2004 08:58:59 GMT</pubDate></item></channel></rss>