Archived

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

TheRealMAN11

CDS_FULLSCREEN and Dev-C++

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites