Pb de création de fenêtre

starjab Messages postés 4 Date d'inscription mardi 1 mars 2005 Statut Membre Dernière intervention 2 mars 2005 - 2 mars 2005 à 10:19
ymca2003 Messages postés 2070 Date d'inscription mardi 22 avril 2003 Statut Membre Dernière intervention 3 juillet 2006 - 2 mars 2005 à 11:30
bonjour ,
voilà un extrait de mon programme :

//On crée nos différents boutons
CreateWindowEx(0, //more or 'extended' styles
TEXT("BUTTON"), //'class' of control to create
TEXT("OK"), //the control caption
WS_CHILD|WS_VISIBLE, //control style: how it looks
305, //control position: left
100, //control position: top
40, //control width
30, //control height
hwnd, //parent window handle
BOUTON_OK, //control's ID
g_hInst, //application instance
NULL);


mais après compilation , j'obtient ce message:
_277 [Warning] passing arg 10 of `CreateWindowExA' makes pointer from integer without a cast
La ligne concernée correspond a celle du " NULL); "
Que puis-je faire ??

3 réponses

cs_JCDjcd Messages postés 1138 Date d'inscription mardi 10 juin 2003 Statut Membre Dernière intervention 25 janvier 2009 4
2 mars 2005 à 10:40
au lieu de NULL, tu mets : ((LPVOID)NULL)

Pourquoi faire simple quand on peut faire compliqué ?
0
starjab Messages postés 4 Date d'inscription mardi 1 mars 2005 Statut Membre Dernière intervention 2 mars 2005
2 mars 2005 à 11:00
J'ai réalisé l'inversion ke tu m'as conseillé, mais sans succés ..
Faut-il une libraire particulière ?
merci
0
ymca2003 Messages postés 2070 Date d'inscription mardi 22 avril 2003 Statut Membre Dernière intervention 3 juillet 2006 7
2 mars 2005 à 11:30
(HMENU)BOUTON_OK
0
Rejoignez-nous