momukhtar
Programmer
- Mar 10, 2008
- 8
I want to convert a windows based application (.exe) into a dll.
I received "fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxv_w32.h"
Then I found out that windows.h is indirectly included through other files like afxtempl.h , afxdisp.h. But I cannot Comment out this directive because it contains classes that are inherited from these files.
Also there are several other classes in the application with the same problem.
I received "fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxv_w32.h"
Then I found out that windows.h is indirectly included through other files like afxtempl.h , afxdisp.h. But I cannot Comment out this directive because it contains classes that are inherited from these files.
Also there are several other classes in the application with the same problem.