Author |
Message |
nate
|
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? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Homer_simpson
|
Posted: Sat Jun 14, 2003 2:26 pm Post subject: (No subject) |
|
|
open the project file(.dsp) file instead of (.cpp) file |
|
|
|
|
|
nate
|
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! |
|
|
|
|
|
Homer_simpson
|
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!!! |
|
|
|
|
|
nate
|
Posted: Sat Jun 14, 2003 9:00 pm Post subject: (No subject) |
|
|
i don't have vc++, i have devc++ |
|
|
|
|
|
Prince
|
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 |
|
|
|
|
|
Homer_simpson
|
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... |
|
|
|
|
|
rizzix
|
Posted: Sat Jun 28, 2003 11:17 am Post subject: (No subject) |
|
|
what do u mean VC has no built in GL? (curious) |
|
|
|
|
|
Sponsor Sponsor
|
|
|
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? |
|
|
|
|
|
Catalyst
|
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
|
|
|
|
|
|
|
Mazer
|
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'
|
|
|
|
|
|
|
Catalyst
|
Posted: Thu Jul 03, 2003 1:32 pm Post subject: (No subject) |
|
|
make sure u link u project to
-lgdi32 |
|
|
|
|
|
Mazer
|
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. |
|
|
|
|
|
Homer_simpson
|
Posted: Thu Jul 03, 2003 6:15 pm Post subject: (No subject) |
|
|
do u have a lesson.h in your project? |
|
|
|
|
|
Mazer
|
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? |
|
|
|
|
|
|