Tutorial 1
Not sure i made things very clear in the last post. So will try to clear up a few points. I have 2 machines, one uses windows 98
the other NT4 as it runs duel processors.
I have visual studio 6, which Vs C++ 6.0 is part.
I have set up a new windows application, checked that the lib files are linked by setting the options under the link tab, and made sure that all the lib files are in the correct directories.
Now under both 98 and nt4, I get a compiler error at the pixelformatdescriptor declaration in the create window function which states that there is a syntax error: missing ; before type. the rest of the errors reported are due to this fault.
I have checked the code and it is as per the tutorial, I have downloaded it from the site and it still gives me the same error.
if i move the declaration to the top of the function then it compiles (under 98)but gives me an error which states that "bits" is not a constant, if I then remove bits and replace it with an integer then it compiles ok, but the code does not work.
I have only recently changed over to windows and opengl having previously done all my coding under dos, so I dont really understand how windows works. I brought the opengl windows for 95 and nt book, but it does things differently and does not cover full screen mode.
I am desperate to get this first tut going so that I can do the rest of them.
frustrated
popeye
what do you mean by "the code doesn''t work"
when you do get it to compile?
when you do get it to compile?
Please include the error lines... ie, lines 220 - 230 or so. This will help us, without your code, we''ve got nothing to base our answers on so you will get a lot of answers to possible problems that just takes longer.
S.
S.
are you sure you have the right drivers and/or a competant video card? If it''s having trouble setting the pixel format it might also be that you have the resolution set to something other than 32 bit.
JoeMont001@aol.com www.polarisoft.n3.net
JoeMont001@aol.com www.polarisoft.n3.net
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
September 18, 2000 02:24 AM
have never had a problem compiling any of these demos on 4 different machines.
at work i run a dual processor win nt/single win 2k/98 and at home 98.
getting them to run is a different story (god bless microsoft windows 2000, bastards!)
but i have seen the compiler complain on semicolons alot, and the whole debug window turns into a novel of complaints.
you are either missing a library file, have failed to include all the proper header files or you do not have the proper opengl libraries installed on your system.
you mention that you downloaded the source from this site, make sure you d/l the entire project and try to just compile it. also i''m curious, does the executable included with the project run?
post your compiler''s complaints here, we can help debug it for you. this is actually quite common, and usually traceable to a missing / outdated lib
at work i run a dual processor win nt/single win 2k/98 and at home 98.
getting them to run is a different story (god bless microsoft windows 2000, bastards!)
but i have seen the compiler complain on semicolons alot, and the whole debug window turns into a novel of complaints.
you are either missing a library file, have failed to include all the proper header files or you do not have the proper opengl libraries installed on your system.
you mention that you downloaded the source from this site, make sure you d/l the entire project and try to just compile it. also i''m curious, does the executable included with the project run?
post your compiler''s complaints here, we can help debug it for you. this is actually quite common, and usually traceable to a missing / outdated lib
if it was a library error, woudn''t he got errors in the linking and not the compiling stage?
im beginning to think its an outdated .h, maybe opengl.h?
im beginning to think its an outdated .h, maybe opengl.h?
Tried compiling it as a c++ file and it got ride of the pixel problem. Never used c++ done all my coding in C so never thought about it.
The code still does not run though. I have been reading up on NT and it looks like the problem might be with that. Will post again when I have finished the reading (1000 pages to go).
Thanks for the pointers ( wish I had never started this windows stuff)
popeye
The code still does not run though. I have been reading up on NT and it looks like the problem might be with that. Will post again when I have finished the reading (1000 pages to go).
Thanks for the pointers ( wish I had never started this windows stuff)
popeye
September 18, 2000 02:17 PM
what errors do you get when you try to run it?
i run this stuff on nt fine, maybe i can help you there
i run this stuff on nt fine, maybe i can help you there
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement