Sabetay Toros
2008-03-15 18:11:51 UTC
Hi,
I'm trying to set a method FormMouseWheelDown to OnMouseWheel event. The
compiler is giving the following error. I'm using BCB6. What am I doing
wrong?
[C++ Error] ProjeDev.cpp(78): E2034 Cannot convert 'void (_fastcall *
(_closure )(TObject *,TShiftState,TPoint &,bool &))(TObject
*,TShiftState,TPoint &,bool &)' to 'void (_fastcall * (_closure
)(TObject *,TShiftState,const TPoint &,bool &))(TObject
*,TShiftState,const TPoint &,bool &)'
Thanks
Sabeetay
class TFooForm : public TForm {
public :
__fastcall ~TFooForm ();
void __fastcall FormMouseWheelDown(TObject *Sender,
TShiftState Shift, TPoint &MousePos, bool &Handled);
};
//---------------------------------------------------------------------------
__fastcall TFooForm :: TFooForm (TFormFactory * AOwner)
: TForm(Application,0)
{
OnMouseWheelDown = FormMouseWheelDown; // On this line
}
I'm trying to set a method FormMouseWheelDown to OnMouseWheel event. The
compiler is giving the following error. I'm using BCB6. What am I doing
wrong?
[C++ Error] ProjeDev.cpp(78): E2034 Cannot convert 'void (_fastcall *
(_closure )(TObject *,TShiftState,TPoint &,bool &))(TObject
*,TShiftState,TPoint &,bool &)' to 'void (_fastcall * (_closure
)(TObject *,TShiftState,const TPoint &,bool &))(TObject
*,TShiftState,const TPoint &,bool &)'
Thanks
Sabeetay
class TFooForm : public TForm {
public :
__fastcall ~TFooForm ();
void __fastcall FormMouseWheelDown(TObject *Sender,
TShiftState Shift, TPoint &MousePos, bool &Handled);
};
//---------------------------------------------------------------------------
__fastcall TFooForm :: TFooForm (TFormFactory * AOwner)
: TForm(Application,0)
{
OnMouseWheelDown = FormMouseWheelDown; // On this line
}