by APIJunkie
22. December 2009 07:17
I was recently porting an MFC C++ application that compiled on Visual studio 2005 32-bit to VS 2008 64-bit.
It turns out there is a bug in the code generated by older versions of MFC that makes it not compile on 64 bit.
The problem is with the OnTimer function signature:
afx_msg void OnTimer(UINT nIDEvent);
It should be changed to ->
afx_msg void OnTimer(UINT_PTR nIDEvent);
You can find Microsoft’s reaction to a similar connect bug report for VS 2005 at:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101372
Hope this helps!
ca880e86-b60f-446d-a68a-835a18b6e2ce|0|.0
Tags:
MFC | C++ | Win64