API change needed for x64 support (VS2008-2012 ?)
Brought to you by:
blep
Per info at http://stackoverflow.com/questions/15003043/how-to-build-cppunit-with-visual-studio-2012 , 2 API changes should be made for 64 bit support. Specifically:
In the class cdxCDynamicDialog
afx_msg void OnTimer(UINT nIDEvent);
should become
afx_msg void OnTimer(UINT_PTR nIDEvent);
and in cdxCDynamicWnd
void DoOnTimer(UINT nIDEvent);
should be
void DoOnTimer(UINT_PTR nIDEvent);
This seems to be the case for at least VS2008 through VS2012 (unverified). Reported for cppunit 1.12.2
Looking at Microsoft VS2010 source, this change is correct for x86/32 bit configurations as well. Without verifying, my guess is that Microsoft made this API change prior to VS2010, which now breaks for 64 bit code. Cppunit code for these 2 APIs changed for 1.12.2 in revision 606/HBrydon.