Jump to content

  • Log In with Google      Sign In   
  • Create Account


C++ beginner by Command Line


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
5 replies to this topic

#1 whereiswez   Members   -  Reputation: 122

Like
Likes
Like

Posted 22 June 2001 - 05:07 AM

Hello I have searched quite a bit, and have still come up empty concerning finding sites to help me begin game programming in C++, but from command line. Most sites have code that is for VC or in Projects, as I''m new to Windows programming, I''ve attempted the old ASM GFX mode lines, which requires TASM32. If any one can help me find a site to start me off windows UNIVERSAL coding, that helps with baby steps, and yes I need those, as all the Hinstance and LCPTLR for a beginner have confused me.

Sponsor:

#2 evaclear   Members   -  Reputation: 162

Like
Likes
Like

Posted 22 June 2001 - 07:04 AM

Well first of all, your not going to be able to access the old ASM graphics modes in a windows command line. Windows maintains exlcusive access to the video hardware at all times. This means that access to things like mode13h are not allowed unless you reboot into "DOS" mode.

On to other fun subjects....

First off realize that most of the windows variables you encounter are either Structures, Classes OR renamed common variable types like char, int, long, float.

Next realize that Microsoft uses something called "Hungarian Notation". It''s a way of naming your variables so that you don''t have to go up to the top of your program to find out what the variable data type is. There is no way to tell what a variable named "FOOBAR" is or what it does with out looking at it''s definition. However just by looking at the variable type HINSTANCE, I know that it''s a handle (pointer) to a Instance of a program. Now I also know that an Instance is a counter. It counts how many copies of a certian program are running. Like 5 Netscape windows would have HINSTANCE values of 0 through 4. If I were to program this then HINSTANCE might look like this:

" int *HINSTANCE;
&HINSTANCE = 2;

cout << &HINSTANCE << " Peanut Butter sandwiches ha ha ha!" << endl; "


LCPTLR, I''ve never heard of that variable type. It doesn''t even look familiar possibly a miss type. LPCSTR maybe? If so it most likely is "Long Pointer to Class String". In normal C++ it might look like this :
"
class String
{
// Nothing needed for this example.
};

String *LPCSTR;
"

Well anyway you get my point. The windows variables are nothing "Special". And if you can learn hungarian notation they become simple to decypher. If you want to find out more on hungarian notation search the web with Google.com or metacrawler.com for "Hungarian Notation" you''ll find some good stuff.

As far as the command line stuff goes, it''s the best place to start. You realy shouldn''t be tackeling something as complex as windows until you know C++ real well.

#3 whereiswez   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 June 2001 - 11:47 AM

mm .. i think .. so far from how i''ve looked at it .. it''s more a matter of the rules of windows programming ..

yes there are new variables and such, that gets picked up after time ..

also .. what do you consider as knowing c++ quite well ? ..

i''m just curious .. because well .. once upon a time i did know my programming stuff but was all silly and anti windows and then directx scared the crap out of me L*LO*O*LO* ..

anyways .. oh .. that LPCSLTR thing duznt exist i was jus a bit frustrated and tapped on teh keys anything that had LPS and R .. dont worry about that .. but what you did write back does make sense if one were to try and decipher .. so that''s quite cool .. coz i wasnt expecting that you''d take it literally eheheh ..

.

is there any way to describe this hungarian notation in less than 10 words ? .. no cheese like "complexed" .. "dorky" "useless" "confusing" .. "best" .. some thing more helpful ..

i''m wondering wether it just isnt a name for something that''s always been there, but now because its windows variables its become "hungarian" or something ..

#4 Daishim   Members   -  Reputation: 244

Like
Likes
Like

Posted 28 June 2001 - 05:10 PM

If you really want to learn windows programming without going through all the deep and grueling concepts of C/C++ then try Visual Basic or Delphi. Just be warned, these languages are pretty limited when you start getting into graphics and games.

#5 deadlinegrunt   Members   -  Reputation: 123

Like
Likes
Like

Posted 28 June 2001 - 07:23 PM

This may be something of interest to you.
quote:
also .. what do you consider as knowing c++ quite well ? ..

My opinion is when you can sit down at the computer or with notepad and paper and determine a software solution to a problem and not struggle with the language itself. Think of it like a hammer. Knowing how to use a hammer is a good thing. Knowing when not to use a hammer is better yet. Just keep in mind you don''t have to use every feature of "insert programming language here" in every single project to do something productive with it.

YAP-YFIO
-deadlinegrunt

#6 whereiswez   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 June 2001 - 06:45 AM

! thanks for the site address ! .. so far it looks very helpful ! ..

also .. hungarian notation is basically what people told us NOT to do in C *lololo* .. now theyv''e just given it a name where we used to call it undecipherable ! ehehehe

thanx !




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