C++中未定义标识符ULONG,UINT的报错解决方法 VS2019 在使用VS 2019中 ulong,uint出现报错情况,如下图: 解决方法如下: 1、加入头文件#include <wtypes.h> 2、#define ulong ULONG 3、#define uint UINT #include <wtypes.h> #define ulong ULONG #define uint UINT 最终结果error为0: