IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

MFC Discussion :

Pb de compilation de K!TV.


Sujet :

MFC

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 4
    Par défaut Pb de compilation de K!TV.
    Bonjour,

    J'essaye actuellement de compiler K!TV avec Visual Studio 6.
    Cependant, j'ai des erreurs (cf bas du post) dans un des projets, que je n'arrive pas à résoudre.

    Pouvez-vous m'aider ???

    Merci beaucoup !

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\settings.cpp(242) : error C2065: 'SM_CXVIRTUALSCREEN' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\settings.cpp(243) : error C2065: 'SM_CYVIRTUALSCREEN' : undeclared identifier
    timer.cpp
    ddraw.cpp
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\ddraw.cpp(600) : error C2065: 'DirectDrawEnumerateEx' : undeclared identifier
    OSD.cpp
    Thread.cpp
    vod.cpp
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\vod.cpp(51) : error C2065: 'SPI_GETDESKWALLPAPER' : undeclared identifier
    Windisplay.cpp
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(370) : error C2065: 'HMONITOR' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(370) : error C2146: syntax error : missing ';' before identifier 'hMonitor'
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(370) : error C2065: 'hMonitor' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(371) : error C2065: 'MONITORINFO' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(371) : error C2146: syntax error : missing ';' before identifier 'mi'
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(371) : error C2065: 'mi' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(375) : error C2065: 'MonitorFromWindow' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(375) : error C2065: 'MONITOR_DEFAULTTOPRIMARY' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(376) : error C2228: left of '.cbSize' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(377) : error C2065: 'GetMonitorInfo' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(392) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(392) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(392) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(392) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(394) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(394) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(399) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(399) : error C2228: left of '.right' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(399) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(399) : error C2228: left of '.right' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(401) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(401) : error C2228: left of '.right' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(406) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(406) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(406) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(406) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(408) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(408) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(413) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(413) : error C2228: left of '.bottom' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(413) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(413) : error C2228: left of '.bottom' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(415) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(415) : error C2228: left of '.bottom' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(491) : error C2065: 'SM_XVIRTUALSCREEN' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(492) : error C2065: 'SM_CXVIRTUALSCREEN' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(493) : error C2065: 'SM_YVIRTUALSCREEN' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(494) : error C2065: 'SM_CYVIRTUALSCREEN' : undeclared identifier
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(737) : error C2146: syntax error : missing ';' before identifier 'hMonitor'
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(738) : error C2146: syntax error : missing ';' before identifier 'mi'
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(742) : error C2228: left of '.cbSize' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(752) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(752) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(753) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(753) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(754) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(754) : error C2228: left of '.right' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(754) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(754) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(755) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(755) : error C2228: left of '.bottom' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(755) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(755) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(795) : error C2146: syntax error : missing ';' before identifier 'hMonitor'
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(796) : error C2146: syntax error : missing ';' before identifier 'mi'
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(839) : error C2228: left of '.cbSize' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(845) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(849) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(849) : error C2228: left of '.bottom' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(849) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(849) : error C2228: left of '.right' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(850) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(850) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(850) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(850) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(860) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(860) : error C2228: left of '.right' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(862) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(862) : error C2228: left of '.right' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(863) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(863) : error C2228: left of '.right' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(866) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(866) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(868) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(868) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(869) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(869) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(872) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(872) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(874) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(874) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(875) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(875) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(878) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(878) : error C2228: left of '.bottom' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(880) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(880) : error C2228: left of '.bottom' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(881) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(881) : error C2228: left of '.bottom' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(893) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(893) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(894) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(894) : error C2228: left of '.left' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(895) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(895) : error C2228: left of '.top' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(896) : error C2228: left of '.rcMonitor' must have class/struct/union type
    C:\PCHC\QuenotteTV_XP_1260_Sources\K!TV-XP\Windisplay.cpp(896) : error C2228: left of '.top' must have class/struct/union type

  2. #2
    Membre confirmé
    Inscrit en
    Janvier 2006
    Messages
    152
    Détails du profil
    Informations forums :
    Inscription : Janvier 2006
    Messages : 152
    Par défaut
    il te manque certainement des fichiers .h qui définissent tes classes, ou alors le bon chemin vers ces fichiers, enfin à première vue...

  3. #3
    Futur Membre du Club
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 4
    Par défaut
    Effectivement, il doit manquer des choses ...
    J'ai bien essayé d'inclure le fichier <winuser.h> mais sans succès ...

    D'autres idées ?

  4. #4
    Membre confirmé
    Inscrit en
    Janvier 2006
    Messages
    152
    Détails du profil
    Informations forums :
    Inscription : Janvier 2006
    Messages : 152
    Par défaut
    Windisplay.h est inclus dans ton Windisplay.cpp ?

  5. #5
    Futur Membre du Club
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 4
    Par défaut
    Oui, il est inclus ...

  6. #6
    Rédacteur
    Avatar de farscape
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2003
    Messages
    9 055
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 9 055
    Par défaut
    bon je ne connais pas K!TV ,ton projet c'est du WIn32 ou des MFC ,
    SM_CXVIRTUALSCREEN c'est avec GetSystemMetrics qui depend de
    Citation Envoyé par MSDN
    Declared in Winuser.h; include Windows.h.
    donc rajoute windows.h
    dans un premier temps ,DirectDrawEnumerateEx faudra chercher ...

  7. #7
    Futur Membre du Club
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 4
    Par défaut
    Merci pour vos infos !!!
    Le programme compile bien maintenant , mais j'ai toujours des problèmes de linkage .

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    ddraw.obj : error LNK2001: unresolved external symbol _DirectDrawEnumerateExA@12
    Voyez-vous une soluce ?

    Merci.

  8. #8
    Membre éclairé
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Juin 2005
    Messages
    700
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Tourisme - Loisirs

    Informations forums :
    Inscription : Juin 2005
    Messages : 700
    Par défaut
    euh.... le SDK directdraw je ne pense pas qu'il soit intallé avec visual 6.
    va donc le telecharger et l'installer.

    et pas de deschtroumphage intensif hein

Discussions similaires

  1. Réponses: 15
    Dernier message: 10/10/2002, 19h19
  2. [Installation] Borland Compiler 5.5 sous XP
    Par Ligey dans le forum Autres éditeurs
    Réponses: 16
    Dernier message: 28/09/2002, 22h45
  3. dans le fond, la compilation...
    Par deltapositive dans le forum C++Builder
    Réponses: 5
    Dernier message: 17/09/2002, 12h14
  4. Vitesse de compilation
    Par srvremi dans le forum C++Builder
    Réponses: 5
    Dernier message: 30/07/2002, 16h49
  5. Réponses: 1
    Dernier message: 27/05/2002, 01h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo