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

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 685022 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 8/22/2011 5:19:54 AM
Access Restriction Public


Forwarded from a user report on the public forums:

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:

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>.
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 EricLeong [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(