<?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[Schleife per Buttonklick unterbrechen]]></title><description><![CDATA[<p>Hallo...<br />
... Wie kann ich es machen, das eine Schleife auf Tastendruck stehen bleibt???<br />
ein beispiel:</p>
<pre><code>void __fastcall TForm1::Button1Click(TObject *Sender)
{
while (stop = 0)
{
Memo1-&gt;Lines-&gt;Add(counter);
counter ++;
}
}
</code></pre>
<p>Und der andere Button zum stoppen:</p>
<pre><code>void __fastcall TForm1::Button2Click(TObject *Sender)
{
stop = 1;
}
</code></pre>
<p>Aber das ganze Programm friert ein, wenn die schleife läuft!!!<br />
Deshalb kann ich noch nichtmal auf den stop Button klicken!<br />
Kann ich das einfrieren irgendwie umgehen oder verhindern???</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/116500/schleife-per-buttonklick-unterbrechen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 21:47:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/116500.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Jul 2005 14:48:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schleife per Buttonklick unterbrechen on Wed, 27 Jul 2005 14:48:23 GMT]]></title><description><![CDATA[<p>Hallo...<br />
... Wie kann ich es machen, das eine Schleife auf Tastendruck stehen bleibt???<br />
ein beispiel:</p>
<pre><code>void __fastcall TForm1::Button1Click(TObject *Sender)
{
while (stop = 0)
{
Memo1-&gt;Lines-&gt;Add(counter);
counter ++;
}
}
</code></pre>
<p>Und der andere Button zum stoppen:</p>
<pre><code>void __fastcall TForm1::Button2Click(TObject *Sender)
{
stop = 1;
}
</code></pre>
<p>Aber das ganze Programm friert ein, wenn die schleife läuft!!!<br />
Deshalb kann ich noch nichtmal auf den stop Button klicken!<br />
Kann ich das einfrieren irgendwie umgehen oder verhindern???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/840118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/840118</guid><dc:creator><![CDATA[Schleife]]></dc:creator><pubDate>Wed, 27 Jul 2005 14:48:23 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife per Buttonklick unterbrechen on Wed, 27 Jul 2005 14:49:31 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>such mal im Forum nach ProcessMessages</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/840121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/840121</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 27 Jul 2005 14:49:31 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife per Buttonklick unterbrechen on Wed, 27 Jul 2005 14:57:19 GMT]]></title><description><![CDATA[<p>Genau das habe ich gesucht Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/840130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/840130</guid><dc:creator><![CDATA[Schleife]]></dc:creator><pubDate>Wed, 27 Jul 2005 14:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to Schleife per Buttonklick unterbrechen on Wed, 27 Jul 2005 15:11:10 GMT]]></title><description><![CDATA[<p>Und nächstes Mal zuerst in die <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39305" rel="nofollow">FAQ</a> sehen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/840144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/840144</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 27 Jul 2005 15:11:10 GMT</pubDate></item></channel></rss>