Computer Science Canada

Always there is an error

Author:  nate [ Sat Jun 14, 2003 1:44 pm ]
Post subject:  Always there is an error

whenever i try to use Nehe's code into my own file I always get the CDS_FULLSCREEN error!. there are 3 of them and they all have 2 do with that what should i do so there is no error?

Author:  Homer_simpson [ Sat Jun 14, 2003 2:26 pm ]
Post subject: 

open the project file(.dsp) file instead of (.cpp) file

Author:  nate [ Sat Jun 14, 2003 6:17 pm ]
Post subject: 

I do but the project file is blank! nothing is on it! so nothing happens!

Author:  Homer_simpson [ Sat Jun 14, 2003 8:09 pm ]
Post subject: 

ok here's how it works... open the project file... you'll see an empty screen then open the .cpp and .h files from the same folder... then compile(F7 in VC++)... then Run(CTRL+F5 in VC++)...
and done!!!

Author:  nate [ Sat Jun 14, 2003 9:00 pm ]
Post subject: 

i don't have vc++, i have devc++

Author:  Prince [ Sat Jun 14, 2003 11:23 pm ]
Post subject: 

devc++ gave me nuthin but problems, i suggest u do as i said and d/l it off kazaa... it may take a while to find but its worth the wait

Author:  Homer_simpson [ Sun Jun 15, 2003 12:14 am ]
Post subject: 

well actually dev c++ is easier(since it's got builtin GL)... just load the .dsp file then open the .cpp and .h files and then compile and run...

Author:  rizzix [ Sat Jun 28, 2003 11:17 am ]
Post subject: 

what do u mean VC has no built in GL? (curious)

Author:  UBC_Wiskatos [ Wed Jul 02, 2003 11:30 pm ]
Post subject:  Re: Always there is an error

nate wrote:
whenever i try to use Nehe's code into my own file I always get the CDS_FULLSCREEN error!. there are 3 of them and they all have 2 do with that what should i do so there is no error?


Could you post your code, and the error you get?

Author:  Catalyst [ Wed Jul 02, 2003 11:46 pm ]
Post subject: 

try putting this at the top of ur code

code:

#ifndef CDS_FULLSCREEN
  #define CDS_FULLSCREEN 4
#endif

Author:  Mazer [ Thu Jul 03, 2003 12:58 pm ]
Post subject: 

that code partially helped. however i still get 3 linker errors:

code:

c:\documents and settings\coutsos\desktop\nick's folder\lesson01\lesson01\lesson.o(.text+0x854):lesson.cpp: undefined reference to `ChoosePixelFormat@8'
c:\documents and settings\coutsos\desktop\nick's folder\lesson01\lesson01\lesson.o(.text+0x898):lesson.cpp: undefined reference to `SetPixelFormat@12'
c:\documents and settings\coutsos\desktop\nick's folder\lesson01\lesson01\lesson.o(.text+0xc2f):lesson.cpp: undefined reference to `SwapBuffers@4'

Author:  Catalyst [ Thu Jul 03, 2003 1:32 pm ]
Post subject: 

make sure u link u project to

-lgdi32

Author:  Mazer [ Thu Jul 03, 2003 2:09 pm ]
Post subject: 

ah... good stuff. i knew that you need to link -lopengl32 -lglu32 and -lglaux but the readme never said anything about -lgdi32

thanks catalyst.

Author:  Homer_simpson [ Thu Jul 03, 2003 6:15 pm ]
Post subject: 

do u have a lesson.h in your project?

Author:  Mazer [ Thu Jul 03, 2003 6:23 pm ]
Post subject: 

are you asking me? if so, then no. there's no lesson.h with the code downloaded from the tutorial. haven't you tried this already?


: