Thread: Win32 console, xp,nt,2000 only?

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    119

    Win32 console, xp,nt,2000 only?

    I noticed that there are 2 compile options in DevC. Windows, and Console. I was wondering if the win32 console is only for xp, nt, and win2000. If so, does that mean a program I compile with DevC won't run on 98 or 95?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Try it is the easiest answer. I do not use that compiler. All the programs in my tutorial will run from 95 ->, so the issue is not the API's, I'd be suprised if your compiler was making that kind of choice for you without giving you further options to remove any such dependency.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Windows 9x/ME have consoles also. Start -> Run -> command -> click OK.


    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    119
    oh ok I thought that since XP and NT weren't built "over" dos like 95 that they were the only ones with the console...

  5. #5
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    Nope, it's just that Win95/98 switches dynamically between a Win32 console/DOS V86 process depending on what you run.

    NT-based operating systems (i.e. 2000/XP) don't rely on any 16-bit code and thus only emulate DOS as safely as they can. This emulation always runs under the guise of a Win32 process.

  6. #6
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    The console works on 95/98/NT/2000/XP and all the server versions. The console is created using the AllocConsole API function which is available on all those platforms.

  7. #7
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    don't forget -- console programs are not limited to MS-Windows -- *nix and MS-DOS 6.x also have console programs. I don't know about MAC but I suspect they do too. The only os that I've use that does NOT have a console are WinCE. on wireless devices such as handheld barcode scanners, and cellphones.

  8. #8
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    It is probably worth pointing out that Console Windows are not "DOS boxes", as they are so often called. DOS INT mode calls for example will not work in a Windows console. To do that, you will need a DOS emulator.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  9. #9
    Registered User
    Join Date
    Dec 2005
    Posts
    119
    thanks for the replies

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding a console window to a Win32 app
    By VirtualAce in forum Game Programming
    Replies: 7
    Last Post: 02-01-2009, 01:09 PM
  2. Console program to Win32
    By Ducky in forum Windows Programming
    Replies: 3
    Last Post: 02-25-2008, 12:46 PM
  3. making a stealthy win32 console application?
    By killdragon in forum C++ Programming
    Replies: 3
    Last Post: 09-08-2004, 02:50 PM
  4. confusion win32 -console app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-11-2003, 10:12 AM
  5. win32 apps compiled with GCC start console window!
    By Citrus538 in forum Windows Programming
    Replies: 5
    Last Post: 02-18-2002, 10:35 PM