Link to home
Start Free TrialLog in
Avatar of mrkerry
mrkerry

asked on

VC++ Error C2642

I'm using MSVC++ V1.52
Trying to set up a simple 1 sec timer.

On the line "ON_WM_TIMER()", which the tool inserted,
I get the following compile error:

"error C2642: cast to pointer to member must be from related pointer to member"

This works OK in another class, but not this one.

Thanks,

MrKerry@aol.com
Avatar of AVaulin
AVaulin
Flag of Ukraine image

Are you sure that your class delivered from CWnd class?
Avatar of RONSLOW
RONSLOW

Please post the source code that was generated (header and cpp).

Post as a comment to here and/or direct to me at Roger_Onslow@compsys.com.au
ASKER CERTIFIED SOLUTION
Avatar of TKII
TKII

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrkerry

ASKER

Thanks...your answer was right on. I don't know how to grade but you get an A.
Thanks, your welcome.