Is this supposed to teach me?

Started by
5 comments, last by SonShadowCat 22 years, 7 months ago
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"
--------------------------------- "Those who serve no purpose, have no purpose."- SSC Oh the possibilities!!Edited By - SonShadowCat on Your Girlfriends Birthday
Advertisement
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.
win32 progs have WINAPI first

"Those who serve no purpose, have no purpose"
--------------------------------- "Those who serve no purpose, have no purpose."- SSC Oh the possibilities!!Edited By - SonShadowCat on Your Girlfriends Birthday
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!]
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.
Son? U mind postin'' a link to Red Book? I would love to download a GL reference manual.
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

This topic is closed to new replies.

Advertisement