15,979
社区成员
发帖
与我相关
我的任务
分享
/* Stock Logical Objects */
#define WHITE_BRUSH 0
#define LTGRAY_BRUSH 1
#define GRAY_BRUSH 2
#define DKGRAY_BRUSH 3
#define BLACK_BRUSH 4
error C2664: 'SelectObject' : cannot convert parameter 2 from 'const int' to 'void *'
个人觉得原因如下,原本它要一个指针,NULL=0可以当做空指针作为输入参数,而其他几个都>0的,所以不能当做指针传入