<?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[Undefiniertes Symbol &amp;quot;SecondProcess&amp;quot;]]></title><description><![CDATA[<p>Hallo,</p>
<p>im Quelltext von Form1 möchte ich einen Thread manchmal anhalten u. dann wieder weiterlaufen lassen.<br />
Mit folgendem Code erzeuge ich zu Beginn des Programms den Thread und starte diesen.</p>
<pre><code>TPing *SecondProcess = new TPing(true); // Thread erzeugen 
 SecondProcess-&gt;Priority = tpLower; // niedrigere Priorität setzen 
 SecondProcess-&gt;Resume(); // Thread jetzt ausführen
</code></pre>
<p>Dies funktioniert auch so.<br />
Aber: Trage ich jedoch in einer eigens erstellten Funktion &quot;void __fastcall NextPing()&quot; den Befehl</p>
<pre><code>SecondProcess-&gt;Suspend(); // PingThread jetzt anhalten
</code></pre>
<p>ein, erkennt er diese nicht, obwohl ich in der Form1.h unter public die Deklaration &quot;void __fastcall NextPing(void)&quot; eingetragen habe. Es erfolgt die Fehlermeldung Undefiniertes Symbol &quot;SecondProcess&quot;.</p>
<p>Was habe ich falsch deklariert?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/102675/undefiniertes-symbol-quot-secondprocess-quot</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 19:33:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/102675.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Feb 2005 16:23:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;SecondProcess&amp;quot; on Mon, 28 Feb 2005 16:23:42 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>im Quelltext von Form1 möchte ich einen Thread manchmal anhalten u. dann wieder weiterlaufen lassen.<br />
Mit folgendem Code erzeuge ich zu Beginn des Programms den Thread und starte diesen.</p>
<pre><code>TPing *SecondProcess = new TPing(true); // Thread erzeugen 
 SecondProcess-&gt;Priority = tpLower; // niedrigere Priorität setzen 
 SecondProcess-&gt;Resume(); // Thread jetzt ausführen
</code></pre>
<p>Dies funktioniert auch so.<br />
Aber: Trage ich jedoch in einer eigens erstellten Funktion &quot;void __fastcall NextPing()&quot; den Befehl</p>
<pre><code>SecondProcess-&gt;Suspend(); // PingThread jetzt anhalten
</code></pre>
<p>ein, erkennt er diese nicht, obwohl ich in der Form1.h unter public die Deklaration &quot;void __fastcall NextPing(void)&quot; eingetragen habe. Es erfolgt die Fehlermeldung Undefiniertes Symbol &quot;SecondProcess&quot;.</p>
<p>Was habe ich falsch deklariert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734468</guid><dc:creator><![CDATA[williman]]></dc:creator><pubDate>Mon, 28 Feb 2005 16:23:42 GMT</pubDate></item><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;SecondProcess&amp;quot; on Mon, 28 Feb 2005 16:57:42 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>so wie der Ausschnitt aussieht, ist SecondProcess lokal in einer Funktion und deshalb in anderen Funktionen nicht mehr gültig. Das muß also auch ein Member von Form1 werden.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734526</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734526</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 28 Feb 2005 16:57:42 GMT</pubDate></item><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;SecondProcess&amp;quot; on Mon, 28 Feb 2005 17:10:12 GMT]]></title><description><![CDATA[<p>In der Thread-Unit (unit3.h) sieht die Deklaration so aus:</p>
<pre><code>class TPing : public TThread
{
private:

protected:
        void __fastcall Execute();
public:
        __fastcall TPing(bool CreateSuspended);
};
</code></pre>
<p>Wie soll ich denn da ein &quot;Member&quot; von Form1 draus machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734548</guid><dc:creator><![CDATA[williman]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:10:12 GMT</pubDate></item><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;SecondProcess&amp;quot; on Mon, 28 Feb 2005 17:14:40 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>die Deklaration von SecondProcess (nicht von TPing) muß aus der Funktion in die Deklaration von TForm1 <strong>verschoben</strong> werden. Also<br />
[cpp]class TForm1<br />
{<br />
...<br />
protected :<br />
<em><em>TPing <em>SecondProcess;</em></em><br />
public :<br />
__fastcall TForm1(TComponent</em> Owner);<br />
};[/cpp]</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734550</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:14:40 GMT</pubDate></item><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;SecondProcess&amp;quot; on Mon, 28 Feb 2005 17:36:49 GMT]]></title><description><![CDATA[<p>Danke.. aber es funktioniert immer noch nicht:</p>
<p>Jetzt kommt bei der Zeile</p>
<pre><code>TPing *SecondProcess = new TPing(true); // Thread erzeugen
</code></pre>
<p>die Meldung E2451 Undefiniertes Symbol 'SecondProcess' und bei der neuen Zeile</p>
<pre><code>protected :
  TPing *SecondProcess;
</code></pre>
<p>kommt E2303 Typname erwartet! Das &quot;TPing&quot; scheint ihm da nicht zu schmecken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734564</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734564</guid><dc:creator><![CDATA[williman]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:36:49 GMT</pubDate></item><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;SecondProcess&amp;quot; on Mon, 28 Feb 2005 17:45:08 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>naja, also darauf kannst du auch selber kommen :<br />
Die Klasse TPing muß von Form1.h aus auch zu erreichen sein.<br />
Also dort ganz oben nach den anderen Includes</p>
<pre><code class="language-cpp">#include &quot;unit3.h&quot;
</code></pre>
<p>und dann beim Erstellen der Instanz in einer Funktion</p>
<pre><code class="language-cpp">SecondProcess = new TPing(true); // Thread erzeugen
</code></pre>
<p>Schau dir mal ein Tutorial zum Thema C++, OOP und BCB an, siehe oben rechts das Menü</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/734575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/734575</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 28 Feb 2005 17:45:08 GMT</pubDate></item></channel></rss>