Home Dashboard Directory Help
Search

CWnd::OnWndMsg has incorrect cast for AfxSig_v_u_v by David Lowndes


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 685022
Opened: 8/22/2011 5:19:54 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Forwarded from a user report on the public forums:
http://social.msdn.microsoft.com/Forums/en-GB/vcmfcatl/thread/c668d8d9-28b6-4666-ad5e-93abca26035d

"
I noticed today that MFC's CWnd::OnWndMsg function doesn't seem to be current.  The following code in the function,

  case AfxSig_v_u_v:
    (this->*mmf.pfn_v_u)(static_cast<UINT>(wParam));
    break;

is the vector for the CWnd::OnTimer function (among other functions).  The signature of CWnd::OnTimer is:

void OnTimer(UINT_PTR nIDEvent);

Therefore, the static_cast<UINT> should be static_cast<UINT_PTR>.
"
Details
Sign in to post a comment.
Posted by Microsoft on 8/23/2011 at 2:18 PM
Hello David,

Thanks for passing along the problem report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by MS-Moderator09 [Feedback Moderator] on 8/22/2011 at 8:04 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 8/22/2011 at 5:39 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.