What exactly is DOS programming

This is a discussion on What exactly is DOS programming within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Is DOS programming the same as just programming in C or C++ console applications? If not i have Dev-C++ will ...

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    26

    What exactly is DOS programming

    Is DOS programming the same as just programming in C or C++ console applications? If not i have Dev-C++ will this work for compiling these DOS programs and will they run in windows XP command prompt like normal C++ console applications will?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,498
    DOS programming refers to the old operating system of the same name, which is a 16 bit world, with limited amounts of memory and lots of random trickery to get anything useful done.

    > If not i have Dev-C++ will this work for compiling these DOS programs and will they run in windows XP command prompt like normal C++ console applications will?
    That depends on the program.
    Fairly simple programs which stick to standard routines should be OK
    Programs which directly access the hardware, DOS interrupts or BIOS interrupts will be a challenge.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    You must remember that Dev C++ doesn't support dos.h so you can't use many of the old dos functions: gotoxy(), and other to color the text and background, etc.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  4. #4
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    I feel extremely old....there are now those who no longer remember the wonder's of Dos....

    c:\> cd memorie
    c:\memorie\>
    ...
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 08:08 PM
  2. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 10:32 AM
  3. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 06:15 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 12:42 PM
  5. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 06:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21