Computing.Net > Forums > Windows 95/98 > No scrollbar in ms-dos mode

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

No scrollbar in ms-dos mode

Reply to Message Icon

Name: Al
Date: March 4, 2001 at 08:15:58 Pacific
Comment:

i have to make some programs for a project and when i execute them in ms-dos mode (C++) there's no scroll bar. I have to see my results but i cant. Does anyone knows where to change those setting because i know there's suppose to be one
thanks
Al



Sponsored Link
Ads by Google

Response Number 1
Name: Jim Clark
Date: March 4, 2001 at 10:28:05 Pacific
Reply:

Whoa...this is NOT a windows problem, and not a Win 98 problem. I think this is a C++ programming problem. You are going to have to write the event handler that creates a scroll bar in DOS...which has nothing to do with Win 98. So your question is NOT an operating system question, it is a PROGRAMMING PROBLEM. I suggest you go to a C++ User Group and ask your question.


0

Response Number 2
Name: sammy
Date: March 4, 2001 at 15:20:23 Pacific
Reply:

Al, if you are writing C++ programs and you want to see all of the output. In DOS You must write your output to a file. If you know how to do this. You'll need a fstream file pointer. It is very similar to using cout.The Proper syntax is.
#include
ofstream filptr; //create ofstream object
filptr.open("filename.txt",ios::app)//open file
filptr<<"\n just like cout"<filptr.close();//close file
Once written to a disk file you can open the file in the DOS editor, notepad from windows explorer or use The DOS Type commad type"filename"|more. Otherwise your output from memory will scroll off the screen.


0

Response Number 3
Name: sammy
Date: March 4, 2001 at 15:29:08 Pacific
Reply:

Al Sorry this forum interperts c++ syntax as HTML
the include statement should be #include use the angle brackets fstream.h create an ofstream object, ofstream filptr;
Then replace cout with filptr. close the file when done with filptr.close();
then open your file in the dos editor. at prompt type edit"filename" and presto scrollbars. hope this helps


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: No scrollbar in ms-dos mode

no acess to floppy in ms dos mode www.computing.net/answers/windows-95/no-acess-to-floppy-in-ms-dos-mode/65239.html

EMM386 in MS-DOS mode www.computing.net/answers/windows-95/emm386-in-msdos-mode/152690.html

Computer Stuck in MS-DOS mode and can't www.computing.net/answers/windows-95/computer-stuck-in-msdos-mode-and-cant-/74207.html