Author |
Message |
nate
![](http://www.e-lacrosse.com/2004/nll/rock.gif)
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Sat Jun 14, 2003 2:26 pm Post subject: (No subject) |
|
|
open the project file(.dsp) file instead of (.cpp) file |
|
|
|
|
![](images/spacer.gif) |
nate
![](http://www.e-lacrosse.com/2004/nll/rock.gif)
|
Posted: Sat Jun 14, 2003 6:17 pm Post subject: (No subject) |
|
|
I do but the project file is blank! nothing is on it! so nothing happens! |
|
|
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Sat Jun 14, 2003 8:09 pm Post subject: (No 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!!! |
|
|
|
|
![](images/spacer.gif) |
nate
![](http://www.e-lacrosse.com/2004/nll/rock.gif)
|
Posted: Sat Jun 14, 2003 9:00 pm Post subject: (No subject) |
|
|
i don't have vc++, i have devc++ |
|
|
|
|
![](images/spacer.gif) |
Prince
![](http://www.angelfire.com/hiphop3/m-unit_hustla/images/fxckpare.jpg)
|
Posted: Sat Jun 14, 2003 11:23 pm Post subject: (No 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 |
|
|
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Sun Jun 15, 2003 12:14 am Post subject: (No 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... |
|
|
|
|
![](images/spacer.gif) |
rizzix
|
Posted: Sat Jun 28, 2003 11:17 am Post subject: (No subject) |
|
|
what do u mean VC has no built in GL? (curious) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
UBC_Wiskatos
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Catalyst
![](http://catalyze.mine.nu/jack_of_spades+100.jpg)
|
Posted: Wed Jul 02, 2003 11:46 pm Post subject: (No subject) |
|
|
try putting this at the top of ur code
code: |
#ifndef CDS_FULLSCREEN
#define CDS_FULLSCREEN 4
#endif
|
|
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Thu Jul 03, 2003 12:58 pm Post subject: (No 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'
|
|
|
|
|
|
![](images/spacer.gif) |
Catalyst
![](http://catalyze.mine.nu/jack_of_spades+100.jpg)
|
Posted: Thu Jul 03, 2003 1:32 pm Post subject: (No subject) |
|
|
make sure u link u project to
-lgdi32 |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Thu Jul 03, 2003 2:09 pm Post subject: (No 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. |
|
|
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: Thu Jul 03, 2003 6:15 pm Post subject: (No subject) |
|
|
do u have a lesson.h in your project? |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Thu Jul 03, 2003 6:23 pm Post subject: (No 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? |
|
|
|
|
![](images/spacer.gif) |
|