i ahve visual c++ 6 , 2003 and 2005 and devc++. So its quite confusing for me as a starter :p

sorry for my bad english i'm dutch :p

i hope you can help me thx in advance,

07-05-2007

vart

So what is the problem?
The function type, name and arguments type - is the same, so the function is the same...

Argument names can be changed as you like...

07-05-2007

JJFMJR

Yep, the function takes the same type of parameters, in either way. I also have Dev-C++ and have been using much OpenGL. Both functions are almost identical except for what they call the variables passed in. The variables will still be the same value.

07-05-2007

a-slayeriq

my question was which compiler should i use so i can do all of the tutorials ? i tried to compile this click here in visual c++ 2005 and i got allot of errors. this is the first error

Code:

Error 1 fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory

07-05-2007

Salem

At the end of each lesson, there is something like this
DOWNLOAD Dev C++ Code For This Lesson. ( Conversion by Dan )

Pick the source code which matches your platform, someone's already done all the customisation work necessary for a number of compilers.

07-05-2007

a-slayeriq

why do i get this error in visual c++ 2005 and visual c++ 6

Code:

Error 1 fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory

07-05-2007

Desolation

Don't you read replies to your questions ? Besides, the answer is simple. The file stdafx.h does not exist. End of the line.

07-05-2007

a-slayeriq

sorry Desolation i do read the replies but i dont see why it doesnt compile/run becouse stdafx.h does exist i searched with search and i found it only do i have to put it in a special folder ?

07-05-2007

Salem

stdafx.h is a microsoft specific header file designed to speed up compilations with their "precompiled header" feature.

Just try deleting that line from the source and try again.

07-05-2007

a-slayeriq

thx salem it worked so i never need that line ?

07-05-2007

Salem

If...
- you have that file included in the source code, AND
- your compiler is microsoft visual studio, AND
- you enable precompiled headers in the IDE, AND
- your project is on the large side, THEN
maybe, just maybe, your project will compile a bit quicker.

07-05-2007

a-slayeriq

ok thx :D

07-05-2007

CornedBee

Quote:

'm completely new to c++ and i'm reading the opengl tutorials right now

That's probably not a good idea.

07-05-2007

MacGyver

Quote:

Originally Posted by CornedBee

That's probably not a good idea.

Especially if you're confused by WinMain()'s parameter names.... That's hardly the first thing you should be confused with. :(