473,408 Members | 2,402 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,408 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 1255
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.