The error indicates that you are including <windows.h> somewhere. Search
for the text "windows.h" in your project directory and see it if is included
in any header file that gets added before stdafx.h.
--
Cheers
Check Abdoul [ VC++ MVP ]
-----------------------------------
"Duncan Winn" <te**@test1.co.uk> wrote in message
news:ed**************@TK2MSFTNGP12.phx.gbl...
No I am not including <windows.h> anywhere !!
Thanks,
Duncan
"CheckAbdoul" <636865636B6162646F756C406E6F7370616D2E6D7670732E6 F7267>
wrote in message news:uI*************@TK2MSFTNGP11.phx.gbl... Do you have a
#include <windows.h>
before including
#include <afxwin.h>
If so, remove it.
--
Cheers
Check Abdoul [ VC++ MVP ]
-----------------------------------
"Duncan Winn" <te**@test1.co.uk> wrote in message
news:eU*************@TK2MSFTNGP11.phx.gbl... Thanks,
but it still comes up with the same error??
"CheckAbdoul" <636865636B6162646F756C406E6F7370616D2E6D7670732E6 F7267>
wrote in message news:uq**************@TK2MSFTNGP12.phx.gbl...
> Try
> #include <afxwin.h>
>
> instead of
> #include <afxcoll.h>
>
> --
> Cheers
> Check Abdoul [ VC++ MVP ]
> -----------------------------------
>
> #include <afxwin.h> // MFC core and standard components
> "Duncan Winn" <te**@test1.co.uk> wrote in message
> news:Os**************@tk2msftngp13.phx.gbl...
> > I would like to use CStringArray, but when I try to include
afxcol.h my > > compiler (VS.NET) complains that...
> >
> > WINDOWS.H already included. MFC apps must not #include
<windows.h> > >
> > Any suggestions???
> >
> >
>
>