Click to See Complete Forum and Search --> : Migration to .NET 2003 : Help Me !!!


prateekduble
July 30th, 2005, 01:27 PM
Hello Gurus,
I am trying to migrate my VC++ 6.0 application to Visual C++ .NET 2003. But I am getting some errors related to ON_COMMAND_RANGE message map.

I have following code:

ON_COMMAND_RANGE(IDC_STEP1_RADIO21, IDC_STEP1_RADIO25, OnStep2)

ERROR-->
g:\NET30JULY\LanguageInterpretation\QuantitySelectionDlg.cpp(135): error C2440: 'static_cast' : cannot convert from 'void (__thiscall CQuantitySelectionDlg::* )(void)' to 'void (__thiscall CCmdTarget::* )(UINT)'

All errors are related to same message map from different files. I think ON_COMMAND_RANGE is deprecated MFC 7.0. Could you please help me with this ??

Thanks in Advance !!!!

Regards,
-- Prateek