I'm declaring:

afx_msg LRESULT OnSetModifiedFlag(WPARAM wParam, LPARAM lParam);

and putting this next line into my message map:

ON_COMMAND(SET_MODIFIED_FLAG, OnSetModifiedFlag)

and I am getting this compile error. This used to compile before I switched to VC++ .NET. =(

error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CMyCtrl::* )(WPARAM,LPARAM)' to 'AFX_PMSG'

Any ideas?