Thread: Win2K/XP console question

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    267

    Question Win2K/XP console question

    Just a quick question.... in Win2K/XP, how many lines does a default DOS console have? I know that Win9x has 25 by default which can be changed to 50... I think Win2K/XP has a default of 50, but I want to check here

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    well thanks...

  3. #3
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    Posts
    346
    Just use a for loop that prints a number on each line and see how many there are. It won't take that long.

    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Try GetConsoleScreenBufferInfo() on MSDN...and try to be more patient next time

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    No, what I'm saying is that I don't have Win2K/XP and would like to know... I have searched around (here, MSDN, and the web), and have nothing... so I was wondering if someone with 2K/XP could just tell me..... otherwise I'll assume it's 50

  6. #6
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    It's 25 on Win2K.

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by d00b
    No, what I'm saying is that I don't have Win2K/XP and would like to know... I have searched around (here, MSDN, and the web), and have nothing... so I was wondering if someone with 2K/XP could just tell me..... otherwise I'll assume it's 50
    The point is.....use the function I gave in your code and code around the results....that way your code will work on all win32 platforms..

  8. #8
    Registered User lliero's Avatar
    Join Date
    Oct 2001
    Posts
    59

    i think

    i think

    you can set the no of lines with this command


    mode con lines =50


    just try this
    if you need to set your resolution

    thnkx



    [email protected] if you help

  9. #9
    Unregistered
    Guest

    Lightbulb

    this has nothing to do whatsoever with your question but a law states that nobody can program a falling blocks game using the syllable 'tris'.

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, 04:13 PM
  2. Question about binary trees and files
    By satory in forum C Programming
    Replies: 9
    Last Post: 03-06-2006, 06:28 AM
  3. Simple Novice Question: MS DOS app. a console?
    By renurv in forum C++ Programming
    Replies: 7
    Last Post: 12-30-2005, 02:42 PM
  4. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  5. Question type program for beginners
    By Kirdra in forum C++ Programming
    Replies: 7
    Last Post: 09-15-2002, 05:10 AM