Archived

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

mrbugg

Big OpenGL problem

Recommended Posts

mrbugg    122
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
Null and Void    1088
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