WINDOWS.H already included. MFC apps must not #include <windows.h>



Hi All

I getting an error message "WINDOWS.H already included. MFC apps must
not #include <windows.h>" However i not including windows.h anywhere in
my project.


Can you help

Many Thanks

Tom

Below is a copy of my stdafx.h



// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#if
!defined(AFX_STDAFX_H__6B703139_63DB_11D5_B5D1_4324324324822__INCLUDED_)
#define AFX_STDAFX_H__6B703139_63DB_11D5_B5D1_4324324324822__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



#include <atlbase.h>
#if _ATL_VER >= 0x0700
#include <atlcoll.h>
#include <atlstr.h>
#include <atltypes.h>
#define _WTL_NO_CSTRING
#define _WTL_NO_WTYPES
#else
#define _WTL_USE_CSTRING
#endif

#include <atlapp.h>

extern CAppModule _Module;

#include <atlmisc.h>
#include <atlcom.h>
#include <atlhost.h>
#include <atlwin.h>
#include <atlctl.h>

#include <atlframe.h>
#include <atlctrls.h>
#include <atldlgs.h>
#include <atlctrlw.h>



#include "atlgdix.h"
#include "CustomTabCtrl.h"
#include "DotNetTabCtrl.h"
#include "SimpleTabCtrls.h"
//#include "SimpleDlgTabCtrls.h"
#include "TabbedFrame.h"
//#include "TabbedMDISave.h"
#include "ListViewNoFlicker.h"

#define _TABBEDMDI_MESSAGES_EXTERN_REGISTER
#define _TABBEDMDI_MESSAGES_NO_WARN_ATL_MIN_CRT
#include "TabbedMDI.h"

#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif





#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers

#include "Resource.h"
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxcview.h>
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common
Controls
#include <afxole.h>
#include <afxpriv.h>
#include <shlobj.h> // IShellFolder support
#include <afxmt.h>
#include <lm.h>
#include <afxtempl.h>



#include <afxdhtml.h>
#include <afxdlgs.h>



//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately
before the previous line.

#endif //
!defined(AFX_STDAFX_H__6B703139_63DB_11D5_B5D1_4324324324822__INCLUDED_)

.



Relevant Pages

  • Re: Problems when adding a new source code
    ... #ifndef JME_EMAIL_HPP ... I hope that if in the future someone gets the same error message and ... Alwyn wrote: ...
    (alt.comp.lang.learn.c-cpp)
  • Re: vim and VIMRUNTIME
    ... Since yesterday i get the following error message when starting vim: ... I try to change the path in line 12 and then the first error message is ... by patent law on written works. ...
    (Debian-User)
  • Re: Progress Bar For Sql server query
    ... > Then, perform an asynchronous fetching. ... > LOCAL loTherm ... > ERROR Message() ... > ENDIF ...
    (microsoft.public.fox.programmer.exchange)
  • vim and VIMRUNTIME
    ... I try to change the path in line 12 and then the first error message is ... Michael Ott, e-mail: ...
    (Debian-User)
  • Re: Random, Non-Duplicatable Errors
    ... > Here is the code (line numbers added for reference): ... > 58: endif ... > Error Message: Array dimensions are invalid. ... > that these errors only occured once and that I cannot duplicate the error ...
    (microsoft.public.fox.programmer.exchange)