Click to See Complete Forum and Search --> : upgrading app from vc6 to vc.net


Muhammad Asher
June 22nd, 2002, 01:22 AM
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.

Dmitry D
June 25th, 2002, 06:13 AM
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.

Compilator
July 10th, 2002, 03:45 AM
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!