From: Drew on
I'm moving from VS6 to VS2005 and am having problems with some
message map declarations. I'm getting this error:

error C2440: 'static_cast' : cannot convert from 'void (__thiscall
CMyClass::* )(UINT *,BOOL)' to 'void (__thiscall CWnd::* )(UINT,UINT,UINT)'

on this line (among others):

ON_WM_KEYDOWN()

How to fix this?

Drew


From: Ajay Kalra on
Drew,

I just looked at the signature for this method in VC6 and VS2005. This
part of the signature has not changed since then. Your signature of
ON_WM_KEYDOWN appears to be incorrect for VC6. VC6 was very forgiving
about these kinds of things. I think this would have been caught in
VS2003 as well. Bottomline is you will need to change the signature as
shown in the error C2440.

------
Ajay Kalra
ajaykalra(a)yahoo.com

From: Drew on
Thanks.

"Ajay Kalra" <ajaykalra(a)yahoo.com> wrote in message
news:1141332883.781226.49920(a)p10g2000cwp.googlegroups.com...
> Drew,
>
> I just looked at the signature for this method in VC6 and VS2005. This
> part of the signature has not changed since then. Your signature of
> ON_WM_KEYDOWN appears to be incorrect for VC6. VC6 was very forgiving
> about these kinds of things. I think this would have been caught in
> VS2003 as well. Bottomline is you will need to change the signature as
> shown in the error C2440.
>
> ------
> Ajay Kalra
> ajaykalra(a)yahoo.com
>