casting errors building VC6 project under VS .NET 7.1

casting errors building VC6 project under VS .NET 7.1

Post by Joseph M. » Wed, 12 May 2004 01:10:48


Yep, you violated the basic specification of what a handler should look like. The
documentation is most precise about this:
LRESULT name(WPARAM, LPARAM);
it does not say that the value is allowed to be void, or that the first parameter is
allowed to be an NHHDR *, or that the second parameter is allowed to be an LRESULT *.
Given that you lost three-for-three, there are no real surprises here. The real problem is
that VS6 did NOT flag this as an error. VS7 correctly tells you that you violated the
specifications.
joe




Joseph M. Newcomer [MVP]
email: XXXX@XXXXX.COM
Web: http://www.yqcomputer.com/
MVP Tips: http://www.yqcomputer.com/