Bonjour,
ce code :
me donne ce warning :
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));
et celui ci :warning C4311: 'type cast' : pointer truncation from 'InterfaceApplication *const ' to 'LONG'
celui là :
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);
How can I get rid of these warnings ?warning C4312: 'type cast' : conversion from 'LONG' to 'InterfaceApplication *' of greater size![]()







Répondre avec citation
Partager