Connect means #include "wingdi.h"; in Form1.h. I compile: more than 100 errors in wingdi.h. Errors are mostly syntactic.

  • one
    Perhaps some wingdi.h header file for wingdi.h not connected. Or some pre (e) compiler variables are not defined or incorrectly defined. - gecube
  • It's easier to connect windows.h right away, it in turn also connects wingdi.h. - insolor

1 answer 1

#include "wingdi.h"; likely, before including #include "wingdi.h"; There is some kind of your code or other inclusions. And there is an error in them. And since inclusions are simply the insertion of text, and the analysis goes later, then the above is obtained.

Move this inclusion to the very top (the very first include). Errors are likely to remain, but will go to more obvious places.