Click to See Complete Forum and Search --> : Two Questions (clear screen & Dos Window)
rino_2
Jun 23rd, 2000, 05:43 PM
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
Dillinger4
Jun 25th, 2000, 07:41 PM
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.
parksie
Jun 26th, 2000, 01:44 AM
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.
rino_2
Jun 26th, 2000, 02:00 AM
Thank you both for your help. Parksie, could you please tell me how I change it to actual dos? Thanks
parksie
Jun 26th, 2000, 02:08 AM
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.
rino_2
Jun 26th, 2000, 03:42 AM
I have got MSVC++ so I might do as you suggest and start using that. Thanks parksie.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.