I receive this error during building in this function, is it normal?
void SetDCPixelFormat(HDC hDC)
{
PIXELFORMATDESCRIPTOR pfd;
int nPixelFormat;
pfd = { /ERROR IS HERE
sizeof(PIXELFORMATDESCRIPTOR),
1,
PFD_DRAW_TO_WINDOW |
PFD_SUPPORT_OPENGL |
PFD_DOUBLEBUFFER |
PFD_TYPE_RGBA,
32,
0, 0, 0, 0, 0, 0,
0, 0,
0, 0, 0, 0,
16,
0,
0,
0,
0,
0,0,0 };
nPixelFormat = ChoosePixelFormat(hDC, &pfd);
SetPixelFormat(hDC, nPixelFormat, &pfd);
}
error: expected primary-expression before '{' token
error: expected ';' before '{' token.
I think the code is ok, do you see any error??