Newbie Question -> Is Console programming different from Windows ?

This is a discussion on Newbie Question -> Is Console programming different from Windows ? within the Windows Programming forums, part of the Platform Specific Boards category; Im learning C++ and i was wondering if Console/Dos programming different from Windows Programming ? ------ Ice...

  1. #1
    Unregistered
    Guest

    Arrow Newbie Question -> Is Console programming different from Windows ?

    Im learning C++ and i was wondering if Console/Dos programming different from Windows Programming ?
    ------
    Ice

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    The short answer is yes.

    You would seem to be aware that a console is not DOS. Good for you, most beginners do not make any distinction.

    DOS/Console programming have similarities in that the medium upon which you output for example, is created for you, and then you can write a line of text on it for example.

    Windows are not created for you. It is up to you to build and register a window class, then create an instance of the window, then set up a message loop to retrieve, masage if necessary and dispatch messages so that eventually the call back routine that you have to write can receive the messages and do something with them.

    There are many differences, and it may sound horrible, but you get used to it quickly. If you want to program Windows OS's, learn the language first using console apps, then move on to Windows apps with the raw API, then maybe try a class library later if you want/need to. Do things in that order and you'll do fine, try to run before you can walk may confuse/disillusion you.

    Good luck.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    In The Light
    Join Date
    Oct 2001
    Posts
    598
    howdy,
    i have spent the last 6 months writing console apps in Borland Builder 5 and Linux gcc/emacs.
    i would like to start moving into the Windows API but i can not find any good tuts or books.
    i've written quit a few engineering calcs in console, how can they be integrated into windows or will i need to recreate them.

    M.R.

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    381
    http://www.winprog.org/tutorial/

    But before you start get a book.
    The Win32 Api Programming Bible is a pretty good book, but its starting to get a bit old now.
    Also get this file:
    ftp://ftp.cs.virginia.edu/pub/lcc-win32/win32hlp.exe
    It is singularly the most useful resource I have ever come across.
    If you own a piece of land and there is an volcano on it and it ruins a
    nearby town, do you have to pay for the property damage?

  5. #5
    In The Light
    Join Date
    Oct 2001
    Posts
    598
    howdy,
    thanks shtarker im in my linux box right now but as soon as i get back to windoze i'll open that file and study.

    M.R.

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>>
    how can they be integrated into windows or will i need to recreate them.
    <<<

    If you isolate the calculations in functions, then it becomes a problem of getting the necessary inputs and displaying the results. This is good basic design anyway.

    Once you have a grasp of Windows programming, you will see how to integrate your existing calculation routines.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  7. #7
    In The Light
    Join Date
    Oct 2001
    Posts
    598
    howdy,
    each calculation IS in a function however some calcs need the values from others, it was pretty simple to do in colsole so i imagine it should be easy to figure out in winows.

    itld's next stop is the book store
    The Win32 Api Programming Bible
    then the reading room (sitting on the head)
    Once you have a grasp of Windows programming,
    thanks folks

    M.R.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. One process with two console windows
    By siavoshkc in forum Windows Programming
    Replies: 8
    Last Post: 01-30-2009, 03:13 PM
  2. Simple Windows Question
    By samGwilliam in forum Windows Programming
    Replies: 2
    Last Post: 09-16-2008, 01:50 PM
  3. Problem with windows console when running.
    By RealityFusion in forum C++ Programming
    Replies: 5
    Last Post: 08-07-2003, 08:56 PM
  4. console -> windows
    By itld in forum Windows Programming
    Replies: 1
    Last Post: 05-15-2002, 12:03 AM
  5. windows dos console
    By dune911 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-16-2002, 10:30 PM

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