We have the following class structure in our code
Class A: public CDialog, public Base1, public Base2
{
};
In the implementation of class A, we have the following:
BEGIN_MESSAGE_MAP( A, CDialog )
ON_WM_SIZE()
END_MESSAGE_MAP()
Note: Base1 and Base2 are not inherited from CDialog or other MFC classes.
In VC6, compilation was successful. But on VC9 we get the following error code:
error C4407: discarded between different pointers to representations of participants, the compiler may generate incorrect code .
This error code indicates the location of ON_WM_SIZE.
Can anyone tell me a solution. Thanks in advance.
Player
source
share