Jump to content

  • Log In with Google      Sign In   
  • Create Account

Is this supposed to teach me?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 SonShadowCat   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 September 2001 - 11:15 AM

i just d/l the red book is this book supposed to teach me or just be a reference? im seeing main() being used and i thought main was only for dos now i know some OGL and the beginning chapter does nothing to teach me so back to my beginning question, is it a reference or a way to teach ppl? "Those who serve no purpose, have no purpose"

Sponsor:

#2 donbonifacio   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 September 2001 - 11:46 AM

every program in C/C++ has a main function, it''s not only for DOS. if you want to learn there are many books and tuturials on the internet.

#3 SonShadowCat   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 September 2001 - 11:47 AM

win32 progs have WINAPI first

"Those who serve no purpose, have no purpose"

#4 Null and Void   Moderators   -  Reputation: 1087

Like
Likes
Like

Posted 30 September 2001 - 11:48 AM

The "main" function is the standard function for all C and C++ programs to begin with, not just DOS. It just happens that the Win32 API has its own main function that sets some stuff up before calling your WinMain function. The Red Book is more reference-ish than many books, but it is meant to teach you (I personally like the reference side of things, so it is a very good book in my opinion ).

[Resist Windows XP''s Invasive Production Activation Technology!]

#5 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 30 September 2001 - 12:37 PM

main() is the standard c/c++ entrance for apps. The only reason you start with WinMain is that there''s a function that looks something like this linked into ever win32 app:

int main(){
//Gets hinstance, etc
return WinMain(hInstance, hPrevInstance, lpStr, nShowCmd);
}

This isn''t exactly it I think, but if you really want to you can trick it into using your main instead of it''s main. Waste of time, though. Just use WinMain.

#6 Zero_Infinity   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 September 2001 - 02:48 PM

Son? U mind postin'' a link to Red Book? I would love to download a GL reference manual.

#7 _Buster_   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 September 2001 - 03:03 PM

Hey,
Here's a PDF of the Red Book. It's actully hosted on Gamedev:

http://www.gamedev.net/download/redbook.pdf

You can view it online, or you can download it.

_BUSTER_



www.dotspot.cjb.net
______________________________
Check out my for sale domain name!

http://www.theatermonkey.com



Edited by - _BUSTER_ on September 30, 2001 10:04:26 PM




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS