CDS_FULLSCREEN and Dev-C++

Started by
3 comments, last by TheRealMAN11 22 years, 8 months ago
I am working on an OpenGL project using Dev-C++ and every time I try to compile it I get the error CDS_FULLSCREEN undeclared. I am using CDS_FULLSCREEN in the function ChangeDisplaySettings(). Does anyone know why I am getting this error, or how to fix it, or the value that CDS_FULLSCREEN should have so I can just put that in there or define it my self. Matthew WebMaster www.Matt-Land.com
It is foolish for a wise man to be silent, but wise for a fool.
Advertisement
uh... can someone please help?

Matthew
WebMaster
www.Matt-Land.com
It is foolish for a wise man to be silent, but wise for a fool.
You are getting this error because the definition is missing from the headers. This has been corrected in later versions of mingw so it should be in the next Dev-C++ release. The correct value is 4 so you can put this at top of your source file

#define CDS_FULLSCREEN 4
Much thanks Obelix.

Matthew
WebMaster
www.Matt-Land.com
It is foolish for a wise man to be silent, but wise for a fool.
The headers for Dev-C++ aren''t always complete, which you''ll find out as you program more and more. The solution is to find someone with MSVC++ or download LCC-Win32 and get the needed definition from those headers.

This topic is closed to new replies.

Advertisement