Results 1 to 6 of 6

Thread: Two Questions (clear screen & Dos Window)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Red face

    Hello,

    Today I have two questions. For my first question:

    I'm using Borland C++ and would like to know how to make my programs appear in a dos console. At the moment all of my programs are appearing in a small white windows.

    For my second question:

    How can I clear the screen. Kind of like CLS in batch files and VB.

    Thanks
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Im not to sure if this really answers your question but
    i know you can use #include <process.h> and then use
    system("CLS") to clear the screen when working in console
    mode.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    the reason your programs are in white windows is probably because you have got their project type set as QuickWin (or something like that). you need to change it to an actual DOS program.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Smile

    Thank you both for your help. Parksie, could you please tell me how I change it to actual dos? Thanks
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Since I don't have Borland C++, I can't say exactly. I did use it before, but didn't like it and moved to MSVC++. This might work: if you create a new project and migrate all your source files to it.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Smile

    I have got MSVC++ so I might do as you suggest and start using that. Thanks parksie.
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width