Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: CDS_FULLSCREEN?

  1. #1
    Guest

    CDS_FULLSCREEN?

    Hey. I got a prob. I have still not gotten passed the first opengl tut over at nehe. Everytime i try to compile there is an error saying that "CDS_FULLSCREEN" is undeclared.

    "153 a:\lesson01\lesson1.cpp
    `CDS_FULLSCREEN' undeclared (first use this function)(Each undeclared identifier is reported only for each function it appears in.)"

    and this is what it looks like in the code...

    Code :
    if (ChangeDisplaySettings(&dmScreenSettings,CDS_FULLSCREEN)!=DISP_CHANGE_SUCCESSFUL)
    i even tried downloading the code from nehe for devc++ and tried compiling but i still got the same error. so it must be the code or the compiler but it happend in to differnt compilers....

    thanks for any help i can get

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,652

    Re: CDS_FULLSCREEN?

    CDS_FULLSCREEN is defined in winuser.h, which automatically gets included if you include windows.h.

    You apparently did, because otherwise ChangeDisplaySettings itself would be undefined and cause an error.

    Do not include winuser.h directly. Instead, try to get up-to-date headers for your compiler. You appear to be using MingW. I could successfully compile code similar to yours with DevCPP/MingW-GCC3.2. I'd suggest trying that. Grab it here .

    If you're just using MingW/GCC, and not DevCPP, you need to check for new versions here , obviously.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2004
    Posts
    12

    Re: CDS_FULLSCREEN?

    Hey thanks man. I'm gonna dl it now.
    <div class="ubbcode-block"><div class="ubbcode-header">Code:</div><div class="ubbcode-body ubbcode-pre" style="height: 128px;"><pre>#include &lt;iostream.h&gt;

    int main();
    {
    string str = "Code - the blood of all technology!"
    cout&lt;&lt;str&lt;&lt;endl;
    return 0;
    }</pre></div></div>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •