1 year ago
#346427
waw
How to fix the error C2371: 'RGBQUAD': redefinition; different basic types
I'm coding in C and using GDI. When trying to use RGBQUAD, this errors happens:
C2371: 'RGBQUAD': redefinition; different basic types
Here's my code (it's a header):
typedef union
{
COLORREF rgb;
struct
{
BYTE b;
BYTE g;
BYTE r;
BYTE unused;
};
} RGBQUAD, * PRGBQUAD;
c
rgb
gdi
0 Answers
Your Answer