KOD cpp: UKRYJ
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
TEdit *pole[255];
int b = 0;
//--------------------------------------------- dalej
b++;
pole[b] = new TEdit(this);
pole[b]->OnKeyPress = Edit9KeyPress; //<----- TUTAJ WYWALA BŁĄD
//-------------------------------------------------------
#pragma resource "*.dfm"
TForm1 *Form1;
TEdit *pole[255];
int b = 0;
//--------------------------------------------- dalej
b++;
pole[b] = new TEdit(this);
pole[b]->OnKeyPress = Edit9KeyPress; //<----- TUTAJ WYWALA BŁĄD
//-------------------------------------------------------
|
[BCC32 Error] Unit1.cpp(182): E2034 Cannot convert 'void (_fastcall * (_closure )(TObject *,char &))(TObject *,char &)' to 'TKeyPressEvent' |
w BCB6.0 działało a w XE2 już nie
Co trzeba w tym poprawić?





