Thread: Learning Dos and learning Windows

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    100

    Learning Dos and learning Windows

    Okay, I want to know, what are the limitations to programming in DOS? I want to eventually reach programming in windows, but is that THAT much different than programming in DOS (aside from the fact that you don't have to meddle with extra source code). I mean, can you just use "cout" in a window? Can I just make pong in DOS? Will it be totally different if I use windows? And can I just use the Win32 API or is that becoming outdated since 64 bit computing is around?

    Sorry, really didn't want to put 20 questions in here, but I just had to. Thanks in advance.

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    Define DOS. DOS as in Disc Operating System or DOS in a DOS Window in Windows?
    Woop?

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    100
    Quote Originally Posted by prog-bman
    Define DOS. DOS as in Disc Operating System or DOS in a DOS Window in Windows?
    The second one.

  4. #4
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    programming in windows is a little bit different than programming in DOS. conceptually, your programming will involve the use of event models that will respond to mostly user actions on your window. windows issues a message, for example, let's say a WM_SIZE message or a WM_LBUTTONDOWN message or a WM_KEYDOWN message.. your program should respond appropriately.

    i don't think the win32 api will be outdated, only improved. currently, the api is backwards compatible to at least windows 3.1.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  5. #5
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    DOS has many limitations, no GUI cant display pictures, and only 8 colors to work with. Windows Programming is much different than DOS, and the biggest difference is event-driven programming. In dos you know whats going to happen through out the life spawn of the program but in Windows there are many things that can go differently. And no you can't use cout in Windows, there are functions that will output the text, just like cout. Idk but im pretty sure you cant make pong in DOS, not with windows either, youll need OpenGL, DirectX or other Graphical library. Windows APIs are constantly updated as new version of Windows come out, it is not outdate and wont be outdated for a long time, but there is other alternatives to Win32 API, like MFC for example.
    My Website
    010000110010101100101011
    Add Color To Your Code!

  6. #6
    Registered User
    Join Date
    Jul 2005
    Posts
    100
    Also...let me tell you my specs:

    P3 866
    ATI RADEON 7200
    384 MB RAM

    Will that be okay to program on the newest version of OpenGL/DirectX ? I doubt it...but I'm not going to do any 3d programming at all until at least 2 years of programming, and I'm saving for a computer (gonna be a bagboy at Albertsons <G>). Functions remain constant even if it's 2D right? BTW I want to use OpenGL for graphics and DirectX for everything else.

    When should I learn windows functions? I mean, after learning all those functions in C++ DOS will it be all that different?

  7. #7
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    I want to eventually reach programming in windows, but is that THAT much different than programming in DOS
    Yes, it's totally different and "windows programming" is very complex. The first time you try to learn windows programming, you'll probably decide to become an artist instead.

  8. #8
    Registered User
    Join Date
    Jul 2005
    Posts
    100
    Quote Originally Posted by 7stud
    Yes, it's totally different and "windows programming" is very complex. The first time you try to learn windows programming, you'll probably decide to become an artist instead.
    Thanks for the advice oh noble idle. Hahaha jk.

    When I see some programming of the windows it's not even in friggin english. Do you just get used to it? How long does it take?

  9. #9
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    You'll get used to it after seeing and understanding it. I have just come back to c++ after using C# for many months, and I also just started using the win32 api along with direct x 9.0c.

    It can take some time to get used to, but once you are, it get easier.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  2. Windows applications
    By Jez in forum C Programming
    Replies: 5
    Last Post: 03-21-2004, 03:45 AM
  3. College Admission Essay: Input wanted
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 10-28-2002, 12:53 PM
  4. Windows Console!
    By Perica in forum Windows Programming
    Replies: 15
    Last Post: 10-18-2002, 08:08 PM
  5. learning C++ is boring
    By Flucas in forum C++ Programming
    Replies: 7
    Last Post: 12-07-2001, 09:59 AM