Learning C++ for Windows
Ok, most of my learning in C++ up to this point
has been done completely in either xlC or
Borland TurboC++ 3.5 or basic console applications
in VC++60.
The book I''ve taught myself with is
Object Oriented Programming in C++
Second Edition By Robert Lafore
I''ve read about virtual functions and templates
but don''t quite understand them. How important are they?
I''m well versed in classes, OOP, pointers, streams, and
arrays.
I want to go onto windows programming but I don''t know where
to start.
Could anyone enlighten me?
Lorek@elhazard.net
You can learn some basic Windows programming either in the Game Programming Genesis series on this site, or in the Basic Windows Programming tutorials on my site (in my .sig).
--
WNDCLASSEX Reality;
...
...
Reality.lpfnWndProc=ComputerGames;
...
...
RegisterClassEx(&Reality);
Unable to register Reality...what''s wrong?
---------
Dan Upton
http://0to1.org
http://www20.brinkster.com/draqza
--
WNDCLASSEX Reality;
...
...
Reality.lpfnWndProc=ComputerGames;
...
...
RegisterClassEx(&Reality);
Unable to register Reality...what''s wrong?
---------
Dan Upton
http://0to1.org
http://www20.brinkster.com/draqza
WNDCLASSEX Reality;......Reality.lpfnWndProc=ComputerGames;......RegisterClassEx(&Reality);Unable to register Reality...what's wrong?---------Dan Uptonhttp://0to1.orghttp://www20.brinkster.com/draqza
or
www.winprog.org
www.gameprogramming.com
that is all I can think of. Good luck.
------------------------------
"He who fights with monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you..."~Friedrich Nietzsche
"So quiet, another wasted night, the television steals the conversation. Exhale, another wasted breathe, again it goes unnoticed...." ~ Dashboard Confessional
www.winprog.org
www.gameprogramming.com
that is all I can think of. Good luck.
------------------------------
"He who fights with monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you..."~Friedrich Nietzsche
"So quiet, another wasted night, the television steals the conversation. Exhale, another wasted breathe, again it goes unnoticed...." ~ Dashboard Confessional
------------------------------Put THAT in your smoke and pipe it
You can look that up easily by just typing it into google, here I''ll even find a website for you:
Go Here!
In the future, try not to post posts that you can easily find by one minute of searching on the net.
But here is my little explanation:
A namespace defines a new scope in order to eliminate name conflictions with different classes people have made for example:
Do you see how both of those classes are the same name? Well, if you didn''t have the namespaces there you would get a compiler error most likely. You can also resolve the scope by doing something like this:
std::cout << "Hello World!";
You can also create instances of the class using them as well. Also, the SL (Standard Library) uses namespaces quite extensively, they are all namespace std (well at least most of them).
Good luck!
Go Here!
In the future, try not to post posts that you can easily find by one minute of searching on the net.
But here is my little explanation:
A namespace defines a new scope in order to eliminate name conflictions with different classes people have made for example:
// In foo.hnamespace foo{ class output { int justDoIt(); };}// In std.hnamespace std{ class output { char* getLine(); };}
Do you see how both of those classes are the same name? Well, if you didn''t have the namespaces there you would get a compiler error most likely. You can also resolve the scope by doing something like this:
std::cout << "Hello World!";
You can also create instances of the class using them as well. Also, the SL (Standard Library) uses namespaces quite extensively, they are all namespace std (well at least most of them).
Good luck!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement