• Advertisement

Archived

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

Big OpenGL problem

This topic is 5862 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

I have a big question relating to OpenGL in Dev-C++ for Windows. For some reason the compiler always places a syntax error at the line "if (ChangeDisplaySettings(&dmScreenSettings,CDS_FULLSCREEN)!=DISP_CHANGE_SUCCESSFUL)", pointing to CDS_FULLSCREEN as the problem. Anyone else have this problem? The compiler keeps saying that it''s undeclared. Any help on this? Mr Bugg

Share this post


Link to post
Share on other sites
Advertisement
If you had done a search, I think you would have found the answer to this easily (it is pretty common). The Win32 headers that come with Dev C++ are missing the definition of CDS_FULLSCREEN. Put #define CDS_FULLSCREEN 4 at the top of your file, or in the Win32 header winuser.h.

Share this post


Link to post
Share on other sites
Okay, sorry about that. I feel like a total idiot- such a simple problem!

Share this post


Link to post
Share on other sites

  • Advertisement