<?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;TBitBtn&amp;quot;]]></title><description><![CDATA[<p>Hallo Leute</p>
<p>Ich habe auf meinem Form eine ScrollBox und ein Panel.<br />
Wenn ich dann folgenden Code eintippe und starte, läuft alles super.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;

//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{

}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormShow(TObject *Sender)
{
const int anz=15;
TBitBtn *Stream[15];
int br=137;
Panel1-&gt;Width=anz*br;
for (int i = 0; i &lt; anz; i++)
{
Stream[i]= new TBitBtn(Panel1);
Stream[i]-&gt;Parent=Panel1;
Stream[i]-&gt;Width=br;
Stream[i]-&gt;Height=Panel1-&gt;ClientHeight;
Stream[i]-&gt;Left=br*i;
Stream[i]-&gt;Top=0;
Stream[i]-&gt;Show();
}
}

//---------------------------------------------------------------------------
</code></pre>
<p>Wenn ich dann das Projekt abspeichere und nochmal starte, gibt es folgende Fehlermeldungen:</p>
<pre><code>[C++ Fehler] Unit1.cpp(23): E2451 Undefiniertes Symbol 'TBitBtn'
[C++ Fehler] Unit1.cpp(23): E2451 Undefiniertes Symbol 'Stream'
[C++ Fehler] Unit1.cpp(28): E2303 Typname erwartet
[C++ Fehler] Unit1.cpp(28): E2379 In Anweisung fehlt ;
</code></pre>
<p>Wie gesagt, erst nach abspeichern des Projektes kommen die Fehler.</p>
<p>Weis jemand Rat, was ich da falsch mache?</p>
<p>Danke</p>
<p>wNw</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/192037/undefiniertes-symbol-quot-tbitbtn-quot</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 20:18:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/192037.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Sep 2007 19:34:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;TBitBtn&amp;quot; on Sun, 09 Sep 2007 19:34:05 GMT]]></title><description><![CDATA[<p>Hallo Leute</p>
<p>Ich habe auf meinem Form eine ScrollBox und ein Panel.<br />
Wenn ich dann folgenden Code eintippe und starte, läuft alles super.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;

//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{

}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormShow(TObject *Sender)
{
const int anz=15;
TBitBtn *Stream[15];
int br=137;
Panel1-&gt;Width=anz*br;
for (int i = 0; i &lt; anz; i++)
{
Stream[i]= new TBitBtn(Panel1);
Stream[i]-&gt;Parent=Panel1;
Stream[i]-&gt;Width=br;
Stream[i]-&gt;Height=Panel1-&gt;ClientHeight;
Stream[i]-&gt;Left=br*i;
Stream[i]-&gt;Top=0;
Stream[i]-&gt;Show();
}
}

//---------------------------------------------------------------------------
</code></pre>
<p>Wenn ich dann das Projekt abspeichere und nochmal starte, gibt es folgende Fehlermeldungen:</p>
<pre><code>[C++ Fehler] Unit1.cpp(23): E2451 Undefiniertes Symbol 'TBitBtn'
[C++ Fehler] Unit1.cpp(23): E2451 Undefiniertes Symbol 'Stream'
[C++ Fehler] Unit1.cpp(28): E2303 Typname erwartet
[C++ Fehler] Unit1.cpp(28): E2379 In Anweisung fehlt ;
</code></pre>
<p>Wie gesagt, erst nach abspeichern des Projektes kommen die Fehler.</p>
<p>Weis jemand Rat, was ich da falsch mache?</p>
<p>Danke</p>
<p>wNw</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362178</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362178</guid><dc:creator><![CDATA[wNw]]></dc:creator><pubDate>Sun, 09 Sep 2007 19:34:05 GMT</pubDate></item><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;TBitBtn&amp;quot; on Mon, 10 Sep 2007 06:30:02 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>versuche es mal mit</p>
<pre><code class="language-cpp">#include &lt;buttons.hpp&gt;
</code></pre>
<p>Gruß<br />
Peter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362309</guid><dc:creator><![CDATA[Peter24]]></dc:creator><pubDate>Mon, 10 Sep 2007 06:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to Undefiniertes Symbol &amp;quot;TBitBtn&amp;quot; on Mon, 10 Sep 2007 09:46:14 GMT]]></title><description><![CDATA[<p>Danke !<br />
Das wars !<br />
Hätte ich auch drauf kommen können aber mein Gehirn war wohl gestern vernagelt.</p>
<p>Danke nochmal</p>
<p>wNw</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362419</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362419</guid><dc:creator><![CDATA[wNw]]></dc:creator><pubDate>Mon, 10 Sep 2007 09:46:14 GMT</pubDate></item></channel></rss>