Sign in to follow this  
Gink

What is meant by this line

Recommended Posts

Gink    100
Quote:
Programming Windows 5E Second, you should know C. If you don't know C, Windows programming is probably not a good place to start. I recommend that you learn C in a character-mode environment such as that offered under the Windows 98 MS-DOS Command Prompt window
What is a character mode environment? Is he talking about edit? Or saying dont use IDEs and compile yourself?

Share this post


Link to post
Share on other sites
Illco    928
I think what is meant is try to build an application that runs in text mode (i.e. dos box, prompt, etc) instead of one with a window (like most modern windows applications). Creating the window and programming for such GUI applications is more complicated than plain (old) console programs.

Greetz,

Illco

Share this post


Link to post
Share on other sites
Gink    100
The book is about windows programming though, you cant create windows unless you use the windows API, right? ;

That confuses me that he says learn it in command prompt, as opposed to what?

Share this post


Link to post
Share on other sites
Agony    3452
He says to learn C by using console-mode applications. Then, once you are sufficiently comfortable with the C language, you can move on to learning Windows programming using C.

Share this post


Link to post
Share on other sites
Sam Gamgee    222
I think he's saying that if you don't know any C, it's best to learn it through making console apps instead of actual windows apps. The code to get a console app going is only a few lines... to create even a basic window takes a few pages it seems.

[EDIT] You can still use MS Visual Studio (if that's what you're using...) or something similar, just create a "console" app instead of a windows app... He doesn't mean you have to program in DOS, just make a DOS program.[/EDIT]

Share this post


Link to post
Share on other sites
Agony    3452
Additionally, a console-mode program built on modern compilers will still probably be quite capable of getting access to the Windows API, and will thus still be capable of create windows and doing all the Windows programming stuff. The primary difference between a console-mode program and a play Windows program is that the Windows program does very little for you. You start with just a few parameters (such as the command line parameters). You are then responsible for creating and displaying any windows. The console-mode program on the other hand automatically creates a console window for you (if you didn't already run the program from a console window), and sets I/O so that functions like printf() and scanf() (or C++'s objects cin and cout) interact with the console. It basically sets up a simplified environment for you to work in, so that you don't have the burden of setting it all up yourself.

Share this post


Link to post
Share on other sites
Seraphim    156
I'd say he suggests to learn C without an IDE, that is do the compiling yourself and type in a normal text editor (UltraEdit is a good one on windows).
I have seen many people learning Java with an IDE and after a year they still don't know what 'compiling' means..

Besides that, unless you really want to learn C, skip it and continue on with proper C++. Learning C first will make learning OOP (Object Oriented Programming) much harder IMO.

edit:
After reading it again, the above posters are probably right with their interpretation. I'd still suggest learning how to program without an IDE though.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this