Newbie en détresse

NvK84 Messages postés 17 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 23 mai 2002 - 27 mars 2002 à 02:07
NvK84 Messages postés 17 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 23 mai 2002 - 29 mars 2002 à 18:33
Ya tu kekun ki pourrai me dire kes ki marche po dans:
wndClass.hbrBackground = GetStockObject(WHITE_BRUSH);
g pogner ca dans in livre ke chu en train de lire pis sa marche po!!!
Merci davance

4 réponses

TheRod23 Messages postés 69 Date d'inscription dimanche 15 octobre 2000 Statut Membre Dernière intervention 15 mars 2004
28 mars 2002 à 15:35
il faut que tu le cast en (HBRUSH) comme suit

wndClass.hbrBackground = (HBRUSH)SetStockObject(WHITE_BRUSH);

Voila c'est tout

TheRod23
0
NvK84 Messages postés 17 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 23 mai 2002
29 mars 2002 à 05:45
Merci ca marche mais la g une autre erreur:

IBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

Debug/Prog1_1.exe : fatal error LNK1120: 1 unresolved externals

quant je Build le projet
Merci davance
0
TheRod23 Messages postés 69 Date d'inscription dimanche 15 octobre 2000 Statut Membre Dernière intervention 15 mars 2004
29 mars 2002 à 10:07
Salut,

il semblerait que tu n'ais pas de fonction main dans ton prog mais c'est bizard car tu fais un prog window non ? normalement il te faut un winmain. Tu as peut etre mal choisi ton type de projet

regarde si tu n'y arrive pas tu peux m'envoyer tout ton projet que je regarde (therod23@hotmail.com)

bonne continuation

TheRod23
0
NvK84 Messages postés 17 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 23 mai 2002
29 mars 2002 à 18:33
G changer le type du projet pis ca marche merci!!!! :big)
0
Rejoignez-nous