Bonjour,

ce code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
  // on attache un pointeur vers l'objet interfaceapplication au handle de la fenetre
  SetWindowLongA(m_fenetre_menu_hdl,GWL_USERDATA,(LONG)(this));
me donne ce warning :
warning C4311: 'type cast' : pointer truncation from 'InterfaceApplication *const ' to 'LONG'
et celui ci :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
  // on recupere un pointeur vers l'objet InterfaceApplication grace au handle de la fenetre
  InterfaceApplication* iapp = (InterfaceApplication*) GetWindowLongA(hwnd,GWL_USERDATA);
celui là :
warning C4312: 'type cast' : conversion from 'LONG' to 'InterfaceApplication *' of greater size
How can I get rid of these warnings ?