[MSVC 7.1] wxWidgets C2440 error
Vadim Zeitlin
vadim at wxwidgets.org
Fri Jul 27 13:28:13 PDT 2007
On Wed, 25 Jul 2007 08:01:58 -0700 David L Goldsmith <David.L.Goldsmith at noaa.gov> wrote:
DLG> Hi, folks. I'm getting the following compile error:
DLG>
DLG> error C2440: 'static_cast' : cannot convert from 'void (__thiscall
DLG> wxSolveSACminimalDialog::* )(wxCommandEvent &)' to 'wxCloseEventFunction'
DLG>
DLG> Anyone know what's amiss? Thanks!
Your event handler signature is wrong, it should take wxCloseEvent and not
wxCommandEvent.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list