December 12th, 2003, 05:01 AM
Error including <windows.h> with MFC
I find this error when compiling a class which includes some .h files, and many of them surely includes <windows.h>
The error is:
c:\archivos de programa\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
The problem is that only when including a class made by me, which includes <afxwin.h> or <afxmt.h>, the error appears. No problem with other included .h files which include <windows.h>
December 12th, 2003, 07:07 AM
#include <windows.h> after you include <afxwin.h> or <afxmt.h>
Thought for the day/week/month/year:
Windows System Error 4006:
Replication with a nonconfigured partner is not allowed.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!