在你的代码文件中添加以下行来解决此问题:
#ifndef DWORD // 如果DWORD未定义 typedef unsigned long DWORD; // 定义DWORD为unsigned long类型 #endif 这将为你的代码定义了DWORD类型,以便正确编译Wingdi.h文件。
上一篇:编译错误:错误:找不到包com.sun.xml.internal.bind.marshaller
下一篇:编译错误:调用未声明的函数'_mm_extract_epi16';ISOC99及后续版本不支持隐式函数声明。