C++ Builder da Property değiştirme

Başlatan Erol YILMAZ, 24 Kasım 2011, 15:23:24

Erol YILMAZ

Merhaba arkadaşlar;

void  VisualControl(){
    ButtonBootOpen->Enabled = false;
    ....


C++ Builder'da yukarıdaki gibi bir kodum var.

Fakat buna derleme aşamasında :

E2451 Undefined Symbol 'ButtonBootOpen'  hatası alıyorum

Bu property değiştirme işlemini VisualControl() fonksiyonunda değil de ButtonClick Event'i içinde yaparsam problem yok.

Ne yapabiliriz ?

cicjoe

Form1->ButtonBootOpen->Enabled = false;

cicjoe

veya header da
class TForm1 : public TForm
{
__published:
	TButton *ButtonBootOpen;
	void __fastcall ButtonBootOpenClick(TObject *Sender);
private:
	void VisualControl();
public:
	__fastcall TForm1(TComponent* Owner);
};

ve cpp dosyasinda
void TForm1::VisualControl()
{
	ButtonBootOpen->Enabled = false;
}

Erol YILMAZ

Alıntı yapılan: cicjoe - 24 Kasım 2011, 15:35:59
Form1->ButtonBootOpen->Enabled = false;

teşekkür ettim, çalıştı istediğim gibi :)

cicjoe