Jump to content
  • Advertisement

Archived

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

ScallionODI

CBS_FULLSCREEN + Dev-C++

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

My compiler (dev-c++) tells me CBS_FULLSCREEN is undeclared in lesson02 from NEHE productions. What do I do? it was the msvc version, i cant afford msvc cause im pretty poor now.

Share this post


Link to post
Share on other sites
Advertisement
Here''s a snippet of code (e.g. the line where it''s problematic)

/* begin code */

// Try To Set Selected Mode And Get Results. NOTE: CDS_FULLSCREEN Gets Rid Of Start Bar.
if (ChangeDisplaySettings(&dmScreenSettings, CBS_FULLSCREEN )!=DISP_CHANGE_SUCCESSFUL)

/* end code */

Share this post


Link to post
Share on other sites
In the current distrubution of Dev-C++, CDS_FULLSCREEN is undefined. You need to define it yourself, so at the top of your source type this:

#define CDS_FULLSCREEN 4

Then recompile, the code should work fine.

Share this post


Link to post
Share on other sites
Even better! thanks for yr reply, but i have bad news:

c:\windows\TEMP\ccfLu9fb.o(.text+0x1bb):lesson2.cpp: undefined reference to `glVertex3f@12''
c:\windows\TEMP\ccfLu9fb.o(.text+0x1d9):lesson2.cpp: undefined reference to `glVertex3f@12''
c:\windows\TEMP\ccfLu9fb.o(.text+0x1e1):lesson2.cpp: undefined reference to `glEnd@0''
c:\windows\TEMP\ccfLu9fb.o(.text+0x1f9):lesson2.cpp: undefined reference to `glTranslatef@12''
c:\windows\TEMP\ccfLu9fb.o(.text+0x206):lesson2.cpp: undefined reference to `glBegin@4''
c:\windows\TEMP\ccfLu9fb.o(.text+0x224):lesson2.cpp: undefined reference to `glVertex3f@12''
c:\windows\TEMP\ccfLu9fb.o(.text+0x23b):lesson2.cpp: undefined reference to `glVertex3f@12''
c:\windows\TEMP\ccfLu9fb.o(.text+0x259):lesson2.cpp: undefined reference to `glVertex3f@12''
c:\windows\TEMP\ccfLu9fb.o(.text+0x27e):lesson2.cpp: undefined reference to `glVertex3f@12''
c:\windows\TEMP\ccfLu9fb.o(.text+0x286):lesson2.cpp: undefined reference to `glEnd@0''
c:\windows\TEMP\ccfLu9fb.o(.text+0x3b8):lesson2.cpp: undefined reference to `wglMakeCurrent@8''
c:\windows\TEMP\ccfLu9fb.o(.text+0x3e2):lesson2.cpp: undefined reference to `wglDeleteContext@4''
c:\windows\TEMP\ccfLu9fb.o(.text+0x9b4):lesson2.cpp: undefined reference to `ChoosePixelFormat@8''
c:\windows\TEMP\ccfLu9fb.o(.text+0x9f8):lesson2.cpp: undefined reference to `SetPixelFormat@12''
c:\windows\TEMP\ccfLu9fb.o(.text+0xa2e):lesson2.cpp: undefined reference to `wglCreateContext@4''
c:\windows\TEMP\ccfLu9fb.o(.text+0xa74):lesson2.cpp: undefined reference to `wglMakeCurrent@8''
c:\windows\TEMP\ccfLu9fb.o(.text+0xdba):lesson2.cpp: undefined reference to `SwapBuffers@4''

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You should also create a windows GUI app.

Share this post


Link to post
Share on other sites
c:\dev-c++\opengl\lesson2.o(.text+0x9b4):lesson2.cpp: undefined reference to `ChoosePixelFormat@8''
c:\dev-c++\opengl\lesson2.o(.text+0x9f8):lesson2.cpp: undefined reference to `SetPixelFormat@12''
c:\dev-c++\opengl\lesson2.o(.text+0xdba):lesson2.cpp: undefined reference to `SwapBuffers@4''

these are the errors after i included all the files in my project. are there any other thingies i should d/l for opengl?

i have gl.h, glaux.h, and glu.h in my includes currently.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
They are in the GDI library that you links to if you create a window GUI app or whatever the IDE calls it. From the command line would it be the -mwindows switch.

Share this post


Link to post
Share on other sites
Hm...hey guys, my dev-c++ compiler wont reflect changes in the code when i recompile it.

first, it would''nt change the color of the square in lesson 2.
then i changed the "fullscreen or not?" messagebox text and it did''nt change that when i ran it.

how do i fix this?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!