Passage de 6.0 à 2005 : problème avec les BEGIN_MESSAGE_MAP
Bonjour tout le monde ! :D
Comme je le dis dans le titre du topic, je suis en train de traduire mon application de visual 6.0 à visual 2005.
J'ai de nombreux warning à cause de lignes de codes de ce style : :?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| BEGIN_MESSAGE_MAP(DlgFillHoles, CDialog)
//{{AFX_MSG_MAP(DlgFillHoles)
ON_BN_CLICKED(IDC_Preview, OnPreview)
ON_BN_CLICKED(IDC_WhichContour, OnContourSelection)
ON_BN_CLICKED(IDC_WallThickness, OnWallThickness)
ON_NOTIFY(NM_CUSTOMDRAW, IDC_SliderLength, OnCustomdrawSliderLength)
ON_NOTIFY(NM_CUSTOMDRAW, IDC_SliderEdge, OnCustomdrawSliderEdge)
ON_BN_CLICKED(IDC_EdgeNumber, OnEdgeNumber)
ON_EN_CHANGE(IDC_EpaisseurParoi, OnChangeWallThickness)
ON_BN_CLICKED(IDC_LimitLength, OnLimitLength)
ON_WM_CLOSE()
ON_BN_CLICKED(IDC_AllBorders, OnAllBorders)
ON_BN_CLICKED(IDC_Direction, OnDirection)
ON_BN_CLICKED(IDC_Dir3D, OnDir3D)
ON_BN_CLICKED(IDC_Unconditionnal, OnUnconditionnal)
ON_NOTIFY(NM_CUSTOMDRAW, IDC_SliderCurv, OnCustomdrawSliderCurv)
ON_BN_CLICKED(IDC_DirectionY, OnDirection)
ON_BN_CLICKED(IDC_DirectionZ, OnDirection)
ON_BN_CLICKED(IDC_DirectionScreen, OnDirection)
ON_BN_CLICKED(IDC_Calculate2D, OnDirection)
ON_BN_CLICKED(IDC_CurvFill, OnCurvFill)
//}}AFX_MSG_MAP
END_MESSAGE_MAP() |
Les warnings sont ceux-ci :
Citation:
1>commandfillingholes.cpp(105) : warning C4407: cast between different pointer to member representations, compiler may generate incorrect code
Je ne vois pas du tout ce qu'il attend :? , est-ce que quelqu'un a une idée ? :(