I was given a rather large old Project that I’m currently in the process of writing Cmake files for.
I have a complication now between windef.h and dxgi.h the Error occurse at the this code block.
#if !defined(HMONITOR_DECLARED) && !defined(HMONITOR) && (WINVER < 0x0500)
#define HMONITOR_DECLARED
#if 0
typedef HANDLE HMONITOR;
#endif
DECLARE_HANDLE(HMONITOR);
#endif
It is trying to redefine HMONITOR but it should just skip this If because the WINVER Variable is 0x0A00.
I’ve looked at different locations in the code if the headers are getting included in the wrong order. I’m expecting that it is a error with the Properties of my project and that the compiler is not understanding that it can skip that code segment. I just don’t know what setting that could be or where i would need to look.
user25053379 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.