I am trying to build an MFC project created in VC6, in 2005. I have this entry in the msg map (that has worked ok in VC6):
Header:
afx_msg BOOL OnSubmitButton();
cpp:
ON_BN_CLICKED(IDC_SubmitBu
tton, OnSubmitButton)
with this func prototype:
BOOL CSchAppt::OnSubmitButton()
{
In the 2005 build I get this error message:
1>c:\cv whidbey\cv250\schappt.cpp(
183) : error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CSchAppt::* )(void)' to 'AFX_PMSG'
1> None of the functions with this name in scope match the target type
Can anyone tell me how to correct this? Thanks!
Start Free Trial