fatal error C1189: #error : WINDOWS.H already included.
Bonjour,
j'ai cette erreur lors de ma compil mais pourtant je n'ai pas inclu windows.h
Code:
1 2
|
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> |
J'ai juste ça dans un fichier que pas mal de fichier incluent.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
#ifndef UNICODE_H
#define UNICODE_H
#define MAX_LEN 1024
#undef HR_WORKAROUND
#if !defined _UNICODE && !defined UNICODE
#define HR_WORKAROUND
#pragma message("Disable MFC inclusion and other stuff that does not compile and/or link for us")
#endif
#ifndef HR_WORKAROUND
#include <afxwin.h>
#endif
.... |
Si quelqu'un a une idée.
Cela ne viendrait pas du placement du afxwin.h ?
Merci d'avance