CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005
    Posts
    125

    Question Migration to .NET 2003 : Help Me !!!

    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

  2. #2
    Join Date
    May 2000
    Location
    Scotland, Livingston.
    Posts
    728

    Re: Migration to .NET 2003 : Help Me !!!

    Have you forgotten to define the OnStep2 method defined with the UINT parameter required for ON_COMMAND_RANGE?
    Dave Mclelland.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured