I was asked to make a program which rang a bell at certain at certain moments. The one way i can think of making it is by using a loop, but i should try to avoid using it and i don't have any idea. I thought of looping, and when the time matched with the specified one, it rang the bell. I do not have it clear how to make it ring. They told me that i had to think of how to develop the program and they would think of how to make the bell ring when i returned 1 or 0. This is the thing: if main() returns any number, the program finishes...!
Any ideas...??? Help is really much appreciated
Apr 11 '07
12 2043 JosAH 11,448
Recognized Expert MVP
The bell is not what i should worry about, it should be conected to the parallel port, then i'll tell the other people which cable(s) will be returning the 1.
I should make a program which does everything, i mean that i should have to open the program and the program would do everything for me. That means not needing to use windows xp scheduler, at least not manually. Thanks for your help. Please ask for clarification if there's something i forgot to write.
Well, if that is the point instead, reread Banfa's reply #6.
kind regards,
Jos
Banfa 9,065
Recognized Expert Moderator Expert
The bell is not what i should worry about, it should be conected to the parallel port, then i'll tell the other people which cable(s) will be returning the 1.
I should make a program which does everything, i mean that i should have to open the program and the program would do everything for me. That means not needing to use windows xp scheduler, at least not manually. Thanks for your help. Please ask for clarification if there's something i forgot to write.
You do realise that it has taken 10 messages in this thread for you to even get to the point of mentioning the parallel port. This would have moved along more quickly if you had mentioned this in the first place instead of making us try and tease the information out of you.
I suggest that you read this which has much to say on the subject of using the parallel port as a control port.
You do realise that it has taken 10 messages in this thread for you to even get to the point of mentioning the parallel port. This would have moved along more quickly if you had mentioned this in the first place instead of making us try and tease the information out of you.
I suggest that you read [url=http://www.epanorama.n et/circuits/parallel_output .html#windowspr ogramming]this[url] which has much to say on the subject of using the parallel port as a control port.
Thanks! I guess this website will be enough!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Tyler |
last post by:
Hi ppl,
I know it's forbidden to mention Java in this newsgroup but I've been
presented with a problem which requires that my C++ program
communicate with another java program.
What is the best,simplest and quickest way to go about this?
I was thinking, I could have my C++ program write data to a file and
then my Java program pick it up from there but this is a little too
|
by: Dave Hammond |
last post by:
You'd think this was an occasionally asked question, but a search for
previous related posts only turned up one from 1999, and that one was
never anwered. So...
When handling a keypress event, the terminal bell always rings (at
least with Internet Explorer). While it's not a show-stopper, it can
become annoying. Anyone have any tricks to silence the bell?
Thanks in advance!
|
by: MLH |
last post by:
This question, I apologize, is more of a math question than it is
an Access question - I'm almost certain.
The bell curve is another name for the normal distribution, which is a
common type of graph that has more or less the shape of a bell. "The
Bell Curve" was also the title of a book, a controversial book back in
1994. It was about intelligence. If you graph scores on an IQ test on
the horizontal axis, and number of people who got...
|
by: jessebasketball |
last post by:
i am a very beginner programmer and am stuck on a very simple problem.
I am trying to make a game where the user
is presented with a scenerio and options. ie
you are standing in the parking lot
a.run
b.go home
c.stay there
when a option is selected a new option is presented.
|
by: tiger786 |
last post by:
I am new to programming and studying basics in college .Can somebody
write a program on this?
The program should monitor a possibly infinite stream of characters
from the keyboard (standard input). If it detects the sequence "ccc"
it outputs a "0". If it detects the sequence "cdc" it outputs a "1".
DO NOT detect sequences within sequences. The program should exit
cleanly when it detects an End Of Input.
For example:
| |
by: Csaba Gabor |
last post by:
Is there a way in Mozilla/Firefox to ring the bell? For example, in
Emacs or Notepad (on my Win XP Pro system) if you enter certain
shortcuts (e.g. ^g or ^q, respectively), you get a sound to let you
know that from the app's point of view, something unexpected happened.
Can I accomplish something similar in FF with javascript or via the
keyboard?
Thanks,
Csaba Gabor from Vienna
|
by: Josh |
last post by:
I want to get the ASCII Bell character (7) as a string. How? I'm pulliing
my hair out over the stupid little task. HELP!!!!!!!!! ARRRAGGH!
--
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/
|
by: John |
last post by:
I know this is a very fundamental question. I am still quite confused
if the program call stack stack should always grows upwards from the
bottom, or the opposite, or doesn't matter??
That means the stack pointer should go upwards when there are "push"
operations,
and stack pointer should go downards when there are "pop" operations??
If this is the case, the address should go upwards (increasing) or
downards (decreasing) then? i.e....
|
by: Steven D'Aprano |
last post by:
I'd be interested in hearing people's stories of Eureka moments in Python,
moments where you suddenly realise that some task which seemed like it
would be hard work was easy with Python.
I had a recent one, where I had spent some time creating a function which
took a list as an argument, and then rearranged the items according to
what magicians call a Monge shuffle. I had started off with a piece of
code that walked the list, dropping...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |