|
-
June 25th, 2003, 01:38 PM
#1
static_cast error in VS.Net 2003
Well, much thanks to everyone who has helped me with the port to VS.Net 2003. I have run across another interesting error when compiling. This application compiles under VC6.
I get the following error:
error C2440: 'static_cast' : cannot convert from 'void (__thiscall CViewZoom::* )(void)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
the line of code it barks at is:
ON_MESSAGE(WM_NCDESTROY, OnNcDestroy)
What is wrong with this?
-
June 25th, 2003, 01:51 PM
#2
PHP Code:
// I think that it should be
ON_WM_NCDESTROY()
//as opposted to
ON_MESSAGE(WM_NCDESTROY, OnNcDestroy)
-
June 25th, 2003, 01:58 PM
#3
that worked!
thanx that made it compile!
BTW, when did it change, and how was I supposed to know that? I guess I am porting a little late in the game.....
-
June 26th, 2003, 07:51 AM
#4
It looks like it changed in .NET 2002 (that's what I have)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|