<?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[mehrere variablen bei _beginthread?]]></title><description><![CDATA[<p>Moin,</p>
<p>wie ich weiß, kann ich mit _beginthread threads erstellen.<br />
wie kann ich mehrere variablen an den thread weitergeben, ohne sie zu &quot;globalisieren&quot;?</p>
<p>Hoffe auf schnelle antwort,</p>
<p>euer ItsNotYou</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/95640/mehrere-variablen-bei-_beginthread</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 23:51:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/95640.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Dec 2004 20:51:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Tue, 21 Dec 2004 20:51:40 GMT]]></title><description><![CDATA[<p>Moin,</p>
<p>wie ich weiß, kann ich mit _beginthread threads erstellen.<br />
wie kann ich mehrere variablen an den thread weitergeben, ohne sie zu &quot;globalisieren&quot;?</p>
<p>Hoffe auf schnelle antwort,</p>
<p>euer ItsNotYou</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678311</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Tue, 21 Dec 2004 20:51:40 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Tue, 21 Dec 2004 22:53:54 GMT]]></title><description><![CDATA[<p>Mach eine struct und übergib einen Pointer darauf. Und achte darauf, dass die struct nicht zerstört wird, bevor sie ausgelesen wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678375</guid><dc:creator><![CDATA[Ringding]]></dc:creator><pubDate>Tue, 21 Dec 2004 22:53:54 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 14:03:48 GMT]]></title><description><![CDATA[<p>oder machs einfach so: Die Klasse die die Variablen enthält als Pointer übergeben. und in der Thread Funktion zurück casten, dann hast du dass auch .... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/678711</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678711</guid><dc:creator><![CDATA[ZimmerTho]]></dc:creator><pubDate>Wed, 22 Dec 2004 14:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 14:36:37 GMT]]></title><description><![CDATA[<p>Ringding schrieb:</p>
<blockquote>
<p>Mach eine struct und übergib einen Pointer darauf. Und achte darauf, dass die struct nicht zerstört wird, bevor sie ausgelesen wird.</p>
</blockquote>
<p>Ich weiß, ich bin schwer von bergriff, aber könntet ihr mir ein bissel code geben?</p>
<p>Danke schonmal für die hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678754</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Wed, 22 Dec 2004 14:36:37 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 15:07:26 GMT]]></title><description><![CDATA[<p>Was verstehst du denn daran nicht? Einfach eine Struktur (oder eben Klasse/Instanz) anlegen, in der du die ganzen Sachen, die du übergeben willst speicherst. Dann kannst du _beginthread einfach einen Pointer drauf übergeben <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/678793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678793</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 22 Dec 2004 15:07:26 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 16:55:46 GMT]]></title><description><![CDATA[<p>Ich habe das mal versucht... ich schaffe es aber einfach nicht, an die Daten im thread ranzukommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678888</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Wed, 22 Dec 2004 16:55:46 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 17:12:00 GMT]]></title><description><![CDATA[<p>soweit ich weiss ruft man einen thread so auf:<br />
_beginthread( stoppuhr, 0 , NULL);<br />
und beendet ihn mit<br />
_endthread();</p>
<p>wie soll es möglich sein stoppuhr einen wert zu übergeben, wenn nicht global?</p>
<p>mfG (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678901</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Wed, 22 Dec 2004 17:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 17:24:05 GMT]]></title><description><![CDATA[<p>Öhm...</p>
<pre><code class="language-cpp">struct PERSON              
{
   int   age;
   long  ss;
   float weight;
   char  name[25];
} family_member;

struct PERSON sister; 

_beginthread(stoppuhr, 0, &amp;sister);
</code></pre>
<p>So etwa? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/678913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678913</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Wed, 22 Dec 2004 17:24:05 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 17:30:23 GMT]]></title><description><![CDATA[<p>und wie liest man die sister-daten im thread aus?</p>
<p>da liegt nämlich mein problem.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678918</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Wed, 22 Dec 2004 17:30:23 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 18:12:09 GMT]]></title><description><![CDATA[<p>und woher weiss die funktion, auf was der pointer zeigt?</p>
<p>vielleicht so?:</p>
<p>stoppuhr(PERSON *variable);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678953</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Wed, 22 Dec 2004 18:12:09 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 18:41:39 GMT]]></title><description><![CDATA[<p>ich habe jetzt</p>
<pre><code class="language-cpp">_beginthread(Verbinden, 0, &amp;handles);
</code></pre>
<p>und</p>
<pre><code class="language-cpp">void Verbinden(Handles *h)
</code></pre>
<p>mit</p>
<pre><code class="language-cpp">struct Handles
{
	HWND hAktion;
	HWND hWnd;
};
</code></pre>
<p>und der compiler sagt ständig:<br />
error: invalid conversion from `void (<em>)(Handles</em>)' to `void<br />
(<em>)(void</em>)'</p>
<p>wo ist der fehler?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678976</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678976</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Wed, 22 Dec 2004 18:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Wed, 22 Dec 2004 19:12:26 GMT]]></title><description><![CDATA[<p>Siehe <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__beginthread.2c_._beginthreadex.asp" rel="nofollow">MSDN: _beginthread, _beginthreadex</a>.</p>
<p>Der Prototyp einer Threadfunktion sieht so aus:<br />
void ThreadFunktion( void *Parameter);</p>
<p>Sie sieht <strong>nicht</strong> so aus:<br />
void Verbinden(Handles *h);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/678998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/678998</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Wed, 22 Dec 2004 19:12:26 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 19:35:35 GMT]]></title><description><![CDATA[<p>chille07 schrieb:</p>
<blockquote>
<p>stoppuhr(PERSON *variable);</p>
</blockquote>
<p>Deshalb war ich etwas verwirrt.</p>
<p>ich habe jetzt</p>
<pre><code class="language-cpp">wsprintf(fehler, &quot;Fehler: WSAStartup, fehler code: %d&quot;, WSAGetLastError());
SetWindowText(h-&gt;hAktion, fehler);
</code></pre>
<p>mit</p>
<pre><code class="language-cpp">void Verbinden(/*Handles*/void *h)
</code></pre>
<p>und</p>
<pre><code class="language-cpp">_beginthread(Verbinden, 0, &amp;handles);
</code></pre>
<p>.</p>
<p>der fehler:<br />
error: `void*' is not a pointer-to-object type<br />
bezogen auf das erste.</p>
<p>langsam gehen mir die nerven aus.</p>
<p>kennt vielleicht einer ein gutes thread-tut?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679770</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Thu, 23 Dec 2004 19:35:35 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 19:57:32 GMT]]></title><description><![CDATA[<p>ItsNotYou schrieb:</p>
<blockquote>
<p>kennt vielleicht einer ein gutes thread-tut?</p>
</blockquote>
<p>auch schon was von &quot;Suchen&quot; gehört? ich geb dir sogar die suchbegriffe: &quot;thread tutorial&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679787</guid><dc:creator><![CDATA[nate7]]></dc:creator><pubDate>Thu, 23 Dec 2004 19:57:32 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:09:10 GMT]]></title><description><![CDATA[<p>nate7 schrieb:</p>
<blockquote>
<p>ItsNotYou schrieb:</p>
<blockquote>
<p>kennt vielleicht einer ein gutes thread-tut?</p>
</blockquote>
<p>auch schon was von &quot;Suchen&quot; gehört? ich geb dir sogar die suchbegriffe: &quot;thread tutorial&quot;</p>
</blockquote>
<p>Ergebnisse 1 - 10 von ungefähr 89.600 Seiten auf Deutsch für thread tutorial</p>
<p>fast.</p>
<p>ich gehe jetzt jedes einzelne durch und berurteile, ob es gut oder nicht gut war.</p>
<p>ich hatte (freundlich) gefragt, ob mir jemand eines GUTES tutorial EMPFEHLEN könnte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679795</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:09:10 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:13:23 GMT]]></title><description><![CDATA[<p>Du solltest lieber nach einem Tutorial für C oder C++ suchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679799</guid><dc:creator><![CDATA[tipp!]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:13:23 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:15:42 GMT]]></title><description><![CDATA[<p>tipp! schrieb:</p>
<blockquote>
<p>Du solltest lieber nach einem Tutorial für C oder C++ suchen.</p>
</blockquote>
<p>am besten c.<br />
aber wie - soll ich bei google thread tutorial c eingeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679801</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:17:06 GMT]]></title><description><![CDATA[<p>Ich meinte nach einem C Tutorial und nicht nach einem C Thread Tutorial.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679804</guid><dc:creator><![CDATA[tipp!]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:17:06 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:21:15 GMT]]></title><description><![CDATA[<p>was mache ich mit c-tuts.<br />
ich bräuchte was für threads</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679808</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679808</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:21:15 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:25:06 GMT]]></title><description><![CDATA[<p>Wenn du noch nicht mal weißt wie du von einem void-Pointer zu einem Pointer auf deine Struktur kommst solltest du noch nicht mit der WinAPI programmieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679812</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679812</guid><dc:creator><![CDATA[tipp!]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:25:06 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:26:45 GMT]]></title><description><![CDATA[<p>tipp! schrieb:</p>
<blockquote>
<p>Wenn du noch nicht mal weißt wie du von einem void-Pointer zu einem Pointer auf deine Struktur kommst solltest du noch nicht mit der WinAPI programmieren.</p>
</blockquote>
<p>ach sei still und registrier dich erstmal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679814</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:26:45 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:27:23 GMT]]></title><description><![CDATA[<p>Ach log dich doch aus und lern C. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/679815</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679815</guid><dc:creator><![CDATA[tipp!]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:27:23 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 20:36:43 GMT]]></title><description><![CDATA[<p>es wäre wirklich einfacher (besonders für mich), wenn ich kompetente hilfe bekäme.</p>
<p>vielleicht bin ich, was dieses thema angeht, sehr schwach, aber das könnte sich ändern, wenn mir jemand (von mir aus auch ein tipp!) hilft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/679822</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679822</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Thu, 23 Dec 2004 20:36:43 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Thu, 23 Dec 2004 21:20:51 GMT]]></title><description><![CDATA[<p>sorry, was ich vorhin sagen wollte, war: <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=65208&amp;highlight=thread+tutorial" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=65208&amp;highlight=thread+tutorial</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/679855</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/679855</guid><dc:creator><![CDATA[nate7]]></dc:creator><pubDate>Thu, 23 Dec 2004 21:20:51 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere variablen bei _beginthread? on Sun, 26 Dec 2004 17:31:06 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/6071">@ItsNotYou</a>:<br />
tipp hat leider Recht, auch wenn er unregistriert ist. Bevor man mit der WinAPI beginnt, sollte man zumindest die Grundlagen von C bzw. C++ beherrschen.<br />
Zeiger und Casts gehören zu den Grundlagen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/681206</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/681206</guid><dc:creator><![CDATA[Christoph]]></dc:creator><pubDate>Sun, 26 Dec 2004 17:31:06 GMT</pubDate></item></channel></rss>