473,378 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Buffer Interaction

Hi,

I would like to make a dos program which can directly
interact with the buffer. I mean that there will be a loop
which will constantly check the the buffer for any pressed
key and if there was a key pressed then store it's value.
I tried to use streambuf class but was unable to do so.

Basically I have made a graphical clock(In Dos) and Dos
does not have multithreading capability. So I want to
press the 's' key to stop the clock or erase the clock and
goto some other menu. The problem is that the clock is
itself in a loop state so I have to put the check for
pressed key in the loop. Now cin>> or cin.getline cannot
be used as it will hault the loop until an input is given
and I don't want the clock to stop. I think that this can
only be done if you can directly access the buffer, which
I'm unable to do.

Please do help and if you have a method which does not
require direct buffer accessing then please post it too.

Thanks,
Vikram.
Jul 21 '05 #1
4 1254
Cor
Hi Vikram,

Are you sure you asking this to the right newsgroup?
Dotnet can not run on a Dos computer.
I think you have a better change in a C++ newsgroup (I saw your previous
message).

Cor
Jul 21 '05 #2
Hi Cor,

I posted this question because actually I was working with
a Dos program on Visual Studio 6. So I thought that some
other facility of Visual Studio might come into help.

I will look for a C++ Newsgroup.

Thanks,
Vikram.
-----Original Message-----
Hi Vikram,

Are you sure you asking this to the right newsgroup?
Dotnet can not run on a Dos computer.
I think you have a better change in a C++ newsgroup (I saw your previousmessage).

Cor
.

Jul 21 '05 #3
Hi,

Can anyone tell me some good C++ Newsgroups...

Thanks,
Vikram.

-----Original Message-----
Hi,

I would like to make a dos program which can directly
interact with the buffer. I mean that there will be a loopwhich will constantly check the the buffer for any pressedkey and if there was a key pressed then store it's value.
I tried to use streambuf class but was unable to do so.

Basically I have made a graphical clock(In Dos) and Dos
does not have multithreading capability. So I want to
press the 's' key to stop the clock or erase the clock andgoto some other menu. The problem is that the clock is
itself in a loop state so I have to put the check for
pressed key in the loop. Now cin>> or cin.getline cannot
be used as it will hault the loop until an input is given
and I don't want the clock to stop. I think that this can
only be done if you can directly access the buffer, which
I'm unable to do.

Please do help and if you have a method which does not
require direct buffer accessing then please post it too.

Thanks,
Vikram.
.

Jul 21 '05 #4
Unless you're using Visual Studio 6 with a different C++ compiler than it
comes with, then I don't think what you're actually making *IS* a DOS
program. As far as I know, Visual Studio 6 only compiles 32-bit Windows
programs. If you are writing a console program, then it is still a Windows
program, and therefore it WILL support multi-threading. There are several
Windows programs that look like DOS programs, like NET, IPCONFIG, START,
etc. But I don't think they'll actually run in DOS.

Remember, DOS isn't the only OS with a console. It's just an OS with ONLY a
console.

Now I've heard of DOS-extenders which can run a simple Win32 console program
under DOS, but that's another story.

--Matthew W. Jackson

<an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
Hi Cor,

I posted this question because actually I was working with
a Dos program on Visual Studio 6. So I thought that some
other facility of Visual Studio might come into help.

I will look for a C++ Newsgroup.

Thanks,
Vikram.
-----Original Message-----
Hi Vikram,

Are you sure you asking this to the right newsgroup?
Dotnet can not run on a Dos computer.
I think you have a better change in a C++ newsgroup (I

saw your previous
message).

Cor
.

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: g pavlov | last post by:
W3C recommendations notwithstanding (see http://w3.org/TR/html401/appendix/notes.html#notes-tables) I can't seem to persuade either of the leading browsers to do true incremental table loading....
3
by: Aaron Queenan | last post by:
I have a form which performs some asynchronous code. I want to display a wait cursor when it starts, and hide the wait cursor when it has completed. This part works fairly well, using: ...
4
by: Vikram | last post by:
Hi, I would like to make a dos program which can directly interact with the buffer. I mean that there will be a loop which will constantly check the the buffer for any pressed key and if there...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
4
by: vivek | last post by:
I am new to flash and want someone to guide me, Is it possible to create a UI entirely in Flash and that will inetract with C# components (backend) and these components will in return interact...
331
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
2
by: Alberto | last post by:
How do you write the interaction diagram's messages in c#? like calling a method in the object class? like an event? Thank you
0
by: Omar Abid | last post by:
Reason of this project: The Microsoft.VisualBasic.Interaction class exposes many useful commands and methods that were available in Visual Basic like AppActivate, Beep, Callbyname... This...
3
by: mmm | last post by:
I am looking for advice on Python Editors and IDEs I have read other posts and threads on the subject and my two questions at this time are mainly about the IDLE-like F5-run facilities. While I...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.