Undefiniertes Symbol "TBitBtn"



  • Hallo Leute

    Ich habe auf meinem Form eine ScrollBox und ein Panel.
    Wenn ich dann folgenden Code eintippe und starte, läuft alles super.

    //---------------------------------------------------------------------------
    
    #include <vcl.h>
    #pragma hdrstop
    
    #include "Unit1.h"
    //---------------------------------------------------------------------------
    #pragma package(smart_init)
    #pragma resource "*.dfm"
    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->Width=anz*br;
    for (int i = 0; i < anz; i++)
    {
    Stream[i]= new TBitBtn(Panel1);
    Stream[i]->Parent=Panel1;
    Stream[i]->Width=br;
    Stream[i]->Height=Panel1->ClientHeight;
    Stream[i]->Left=br*i;
    Stream[i]->Top=0;
    Stream[i]->Show();
    }
    }
    
    //---------------------------------------------------------------------------
    

    Wenn ich dann das Projekt abspeichere und nochmal starte, gibt es folgende Fehlermeldungen:

    [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 ;
    

    Wie gesagt, erst nach abspeichern des Projektes kommen die Fehler.

    Weis jemand Rat, was ich da falsch mache?

    Danke

    wNw



  • Hallo

    versuche es mal mit

    #include <buttons.hpp>
    

    Gruß
    Peter



  • Danke !
    Das wars !
    Hätte ich auch drauf kommen können aber mein Gehirn war wohl gestern vernagelt.

    Danke nochmal

    wNw


Anmelden zum Antworten