WINDOWS.h already included Error
-
I'm am implementing the code in this example, http://www.codeproject.com/system/registry.asp[^] and when I #include afx.h to use CString, I get this error: fatal error C1189: #error : WINDOWS.H already included. MFC apps must > not #include If I take out the include, the CString type is not defined. Any help?
-
I'm am implementing the code in this example, http://www.codeproject.com/system/registry.asp[^] and when I #include afx.h to use CString, I get this error: fatal error C1189: #error : WINDOWS.H already included. MFC apps must > not #include If I take out the include, the CString type is not defined. Any help?
With MFC, there is no need to explicitly include
windows.h
as it is automatically done.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
I'm am implementing the code in this example, http://www.codeproject.com/system/registry.asp[^] and when I #include afx.h to use CString, I get this error: fatal error C1189: #error : WINDOWS.H already included. MFC apps must > not #include If I take out the include, the CString type is not defined. Any help?
open ur stdAfx.h and #include "afx.h" after following line there. // TODO: reference additional headers your program requires here
suhredayan
There is no spoon.