1

I'am new to wingdi. As I tried to include my wingdi.h in my borland C++ 5.5 program, the compiler shoots the following errors:
Error E2303 C:\BORLAND\BCC55\INCLUDE\wingdi.h 269: Type name expected
Error E2139 C:\BORLAND\BCC55\INCLUDE\wingdi.h 269: Declaration missing ;
Error E2303 C:\BORLAND\BCC55\INCLUDE\wingdi.h 270: Type name expected
Error E2238 C:\BORLAND\BCC55\INCLUDE\wingdi.h 270: Multiple declaration for '_DR
AWPATRECT::POINT'
Error E2344 C:\BORLAND\BCC55\INCLUDE\wingdi.h 269: Earlier declaration of '_DRAW
PATRECT::POINT'
Error E2139 C:\BORLAND\BCC55\INCLUDE\wingdi.h 270: Declaration missing ;
Error E2303 C:\BORLAND\BCC55\INCLUDE\wingdi.h 271: Type name expected
Error E2139 C:\BORLAND\BCC55\INCLUDE\wingdi.h 271: Declaration missing ;
Error E2303 C:\BORLAND\BCC55\INCLUDE\wingdi.h 272: Type name expected
Error E2238 C:\BORLAND\BCC55\INCLUDE\wingdi.h 272: Multiple declaration for '_DR
AWPATRECT::WORD'
Error E2344 C:\BORLAND\BCC55\INCLUDE\wingdi.h 271: Earlier declaration of '_DRAW
PATRECT::WORD'
I suppose they are in the header file, but what do they mean?How should I solve the problem? Please help!

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by Ancient Dragon
0

probably because you can't include that file (wingdi.h) directly in your program. include windows.h instead, and it will include all the necessary header files.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.