CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    May 2009
    Posts
    12

    VC++ 6.0 -> .net 2003 conversion issue

    Hi all,

    I'm having an issue converting some code that compiled in VC++ 6.0 fine, but is not in .net 2003.

    I've scoured the internet, and found a lot of solutions to problems were related to this error, but nothing for this particular issue.

    The error I'm receiving from the compiler is:

    filename.cpp(88): error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall ClassName::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
    The offending line of code is:

    Code:
    BEGIN_MESSAGE_MAP(ClassName, CWinApp)
    .
    .
    .
         ON_MESSAGE(WM_USER,SaveAllModDBTF)
    The function's prototype:

    Code:
    afx_msg LRESULT SaveAllModDBTF(WPARAM, LPARAM);
    The function's header:

    Code:
    LRESULT ClassName::SaveAllModDBTF(WPARAM	wParam,LPARAM	lParam)
    Does anyone have any ideas about what the issue could be? Let me know if any additional information is required.
    Last edited by snikeris; May 27th, 2009 at 07:05 AM.

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