Thread: Whats difference between dos and windows programming

  1. #1
    Unregistered
    Guest

    Whats difference between dos and windows programming

    dont be mean im DUMB

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    In dos other than tsr's you basically use 100% cpu time and do not multithread or multitask. You have full access to the hardware. While your proggy is running you have full control of the machine.
    Windows on the other hand is basically a giant messaging system. When your proggy is running on windows it does not have direct access to hardware in general and you only get a share of the cpu time. That is because there is other programs running too that need to access the cpu. To program for windows you have to understand the basics of messaging. Whenever an event occurs such as the mouse moving over your proggy, your program recieves a message from windows.You as a programmer decide which messages you want to trap and do things with and you generally let the other messages which are not important to you go through back to windows for default processing.
    This is only a very basic overview. Get Programming windows by charles Petzold for a better explanation of this and other aspects of programming for windows.
    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

  3. #3
    Unregistered
    Guest
    The interesting (perverse) thing is that the entire Windaows Application Prgram Interface (API) and all the messages, etc. can be traced back to basic C/C++ (and a little Pascal) code. Some of the C/C++ is readily evident once you look at the API and other times (often) you have to go back multiple "layers" to see how the API snippet is built of C/C++ parts, but it's there. Because the C/C++ of the API is so convoluted at times, several rapid application development forms have been developed like VC++ and BCB, which handle much of "burden" of the API for you (similar to VB). At this level of abstraction, you "almost" don't need to know C/C++ to program in Windows. But if you want to do more than scratch the surface, having a good grounding in C/C++ is an excellent underpinning to tackle the API.

    Truly perverse, just about everything you learn about I/O handling in console/DOS based C/C++ is irrelevant in Windows because you are working in a graphical environment, not a text based environment. The control loops, switch statements, classes and other user defined classes, inheritance, arrays, lists, templates, etc., however, are all there.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning Dos and learning Windows
    By blankstare77 in forum C++ Programming
    Replies: 8
    Last Post: 07-31-2005, 03:48 PM
  2. Converting from DOS file name to Windows file name
    By President in forum Windows Programming
    Replies: 2
    Last Post: 03-03-2004, 11:53 AM
  3. getting to true DOS with windows NT
    By major_small in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 11-05-2003, 05:23 PM
  4. Dos differences in Windows NT and Windows XP
    By Ruchikar in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 09-17-2003, 11:36 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, 07:14 PM