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!

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.