Compile error in 'winbase.h'

前端 未结 3 1638
失恋的感觉
失恋的感觉 2021-01-01 10:34

I get the following error with a Windows file when compiling winbase.h.

Not sure why I get a syntax error and the compiler shows many more:



        
3条回答
  •  死守一世寂寞
    2021-01-01 11:05

    Are you including directly?

    You shouldn't - it expects to have some things defined/declared before it's processed. Specifically in this case the identifier ULONG_PTR which is declared as a typedef in intsafe.h.

    Include .

提交回复
热议问题