CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2002
    Location
    PAKISTAN
    Posts
    25

    Angry upgrading app from vc6 to vc.net

    HI
    I have just upgraded my application written in VC++ 6.0 to VC++.net. i am receiving errors in message map. the description of error is
    error C2440: 'static_cast' : cannot convert from 'void (__thiscall CProjectView::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
    i am quite frustrated. Is anybody out there who understands what is the possible cause of this error.

  2. #2
    Join Date
    Jun 2001
    Posts
    36
    i've also had problems while migrating to VC 7.0
    and first thing..
    All ur message handlers should return LRESULT not void..
    maybe this will help.

  3. #3
    Join Date
    Jun 2002
    Posts
    3
    Hi,

    I had almost the same problem. In my case I had a ON_WM_QUERYENDSESSION() message that was left from my Visual C++ 6.0 project.

    What I did to solve this problem was to remove the message handler and add a new one in Visual C++ .NET.

    Good luck!

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