How similar is DOS and Win32?

This is a discussion on How similar is DOS and Win32? within the C++ Programming forums, part of the General Programming Boards category; Would it be possible to write a Win32 console program and use it just like a DOS program (ie all ...

  1. #1
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368

    How similar is DOS and Win32?

    Would it be possible to write a Win32 console program and use it just like a DOS program (ie all the low level features such as interrupt re-direction and direct video buffer access)?

  2. #2
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Arrow Not really...

    No, not really, becouse of a few things:

    1.) Protected mode - windows programs cannot access video buffer memory, interrupts, ect.
    2.) If you make a "DOS" program and run it in windows, its an [I]enumation, not the real thing.

    SPH

  3. #3
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368
    ****ing great! What the hell is the point in that, then? Why is Microsoft so intent on killing off DOS support. A cool game I made in DOS won't work in 2000 because it uses an alternate ISR for the keyboard.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Originally posted by samGwilliam
    ****ing great! What the hell is the point in that, then? Why is Microsoft so intent on killing off DOS support. A cool game I made in DOS won't work in 2000 because it uses an alternate ISR for the keyboard.
    Its because DOS having complete control of something is not good for a proper Multitasking OS.....

    Anyway.....just implement the key handlers with some WINAPI functions or DirectInput

  5. #5
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368
    I know ........ all about Windows specific coding

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Originally posted by samGwilliam
    I know ........ all about Windows specific coding
    Good time to learn....


    Post some code and see if anyone can give you the answer quickly

  7. #7
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    This is the details on the api way.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  2. DOS Reference Material
    By Axpen in forum Tech Board
    Replies: 9
    Last Post: 09-10-2004, 08:39 AM
  3. dos to win32 console
    By lambs4 in forum C Programming
    Replies: 3
    Last Post: 04-05-2003, 10:04 AM
  4. 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
  5. DOS vs. Win32
    By Waldo2k2 in forum C++ Programming
    Replies: 18
    Last Post: 06-24-2002, 01:29 PM

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