Archived

This topic is now archived and is closed to further replies.

New To OpenGL

This topic is 5509 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I''m new to OpenGL. I''ve tried to run the code that have been supplied in Tutorial 01 but it can''t work. I''m using Visual C++ 6.0. I''ve added the OpenGL library in my project but still got an error & warning msg. Is this below code correct? static PIXELFORMATDESCRIPTOR pfd= // pfd Tells Windows How We Want Things To Be { The error msg are: error C2143: syntax error : missing '';'' before ''type'' error C2065: ''pfd'' : undeclared identifier Please help. Thank you.

Share this post


Link to post
Share on other sites
are you #include'ing the latest version of the glext.h and wglext.h headers (i don't remember which one actually includes the function pointer you're talking about)? or is that from windows.h ... either way, you're not including the right header.

[EDIT: actually it's included in wingdi.h]

-me

[edited by - Palidine on November 18, 2002 8:18:46 PM]

Share this post


Link to post
Share on other sites