www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - wingdi.h

reply "Mark Abner" <markab wrisco.biz> writes:
DMC 8.38n reports errors in wingdi.h.

gditest.c contains: #include <wingdi.h>
dmc -L/su:windows gditest.c
    FLOAT   eM11;
               ^
c:\dmc\bin\..\include\win32\WINGDI.H(365) : Error: ';' expected following
declar
ation of struct member
    FLOAT   eM12;
               ^
c:\dmc\bin\..\include\win32\WINGDI.H(366) : Error: 'FLOAT' is already
defined
    FLOAT   eM21;
               ^
c:\dmc\bin\..\include\win32\WINGDI.H(367) : Error: 'FLOAT' is already
defined
    FLOAT   eM22;
               ^
c:\dmc\bin\..\include\win32\WINGDI.H(368) : Error: 'FLOAT' is already
defined
    FLOAT   eDx;
              ^
c:\dmc\bin\..\include\win32\WINGDI.H(369) : Error: 'FLOAT' is already
defined
Fatal error: too many errors
--- errorlevel 1

Mark
Jan 19 2004
parent "Walter" <walter digitalmars.com> writes:
wingdi.h is not meant to be #include'd alone. You need to preface it with
#include <windef.h>, which defines FLOAT.

"Mark Abner" <markab wrisco.biz> wrote in message
news:bugqt7$1jtf$1 digitaldaemon.com...
 DMC 8.38n reports errors in wingdi.h.

 gditest.c contains: #include <wingdi.h>
 dmc -L/su:windows gditest.c
     FLOAT   eM11;
                ^
 c:\dmc\bin\..\include\win32\WINGDI.H(365) : Error: ';' expected following
 declar
 ation of struct member
     FLOAT   eM12;
                ^
 c:\dmc\bin\..\include\win32\WINGDI.H(366) : Error: 'FLOAT' is already
 defined
     FLOAT   eM21;
                ^
 c:\dmc\bin\..\include\win32\WINGDI.H(367) : Error: 'FLOAT' is already
 defined
     FLOAT   eM22;
                ^
 c:\dmc\bin\..\include\win32\WINGDI.H(368) : Error: 'FLOAT' is already
 defined
     FLOAT   eDx;
               ^
 c:\dmc\bin\..\include\win32\WINGDI.H(369) : Error: 'FLOAT' is already
 defined
 Fatal error: too many errors
 --- errorlevel 1

 Mark
Jan 19 2004