Hi everyone,

I'm relatively new to OpenGL programming. I successfully wrote an application with freeGLUT and GLEW displaying some triangles and some textures.
Now I wanted to create an application without freeGLUT.
The problem is that "ChoosePixelFormat()" always returns 0 instead of some matching number.
Here is my PIXELFORMATDESCRIPTOR:
Code :
PIXELFORMATDESCRIPTOR pfd = {
		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, 0, 
		24, 
		0, 
		0, 
		PFD_MAIN_PLANE, 
		0, 
		0, 0, 0
	};
 
        int matchingPFD;
	matchingPFD = ChoosePixelFormat(hdc, &pfd);

I really have no idea what I am doing wrong here so I hope someone can help me out.
For your information I'm using Windows 8 and Visual Studio 2010.

Thanks and greetz
sikkiv