Hi All,
We have the following class structure in our code
Class A: public CDialog, public Base1, public Base2
{
};
In implementation of Class A we have the following:
BEGIN_MESSAGE_MAP( A, CDialog )
ON_WM_SIZE()
END_MESSAGE_MAP()
Please note Base1 and Base2 doesn't inherit from CDialog or any other MFC classes.
On VC6 the compilation is successful. But on VC9 we get the following error code:
error C4407: cast between different pointer to member representations, compiler may generate incorrect code.
This error code is pointing to the location of ON_WM_SIZE.
Could anyone possibly tell me a solution. Thanks in advance.
Gamer