473,287 Members | 1,813 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,287 software developers and data experts.

How to Read and Write on Parallel Port using C in Windows XP

Hello,

I want to create a small project which will display scrolling text on
LED that will be attached to Parallel port. I want to create this
project in C language(possibly in Mingw) on Windows XP. I want to know
how can i access(read and write data) on parallel port in XP.

I have a program that do the same thing but in its documentation it
says that it will not work on Windows XP.

I want to create a GUI for this project in which we can enter the
desired Text to display on LED and Scrolling Speed.

Is this possible to create this Project in C?

Feb 23 '07 #1
6 9276
On Feb 23, 3:10 pm, "abhi" <abhina...@gmail.comwrote:
Hello,

I want to create a small project which will display scrolling text on
LED that will be attached to Parallel port. I want to create this
project in C language(possibly in Mingw) on Windows XP. I want to know
how can i access(read and write data) on parallel port in XP.
You'll probably get a poor response here. This group concentrates on
the C programming language in general, not how it can do something
with a specific platform (hardware, O/S).

Entering '"Windows XP" "Parallel Port" read write' (with the "
characters but not the ' characters) into Google seemed productive for
me.
I have a program that do the same thing but in its documentation it
says that it will not work on Windows XP.
Shame...
I want to create a GUI for this project in which we can enter the
desired Text to display on LED and Scrolling Speed.
Good luck. But don't ask about GUIs here...
Is this possible to create this Project in C?
Yes, but you'll need to do things beyond the standard "portable" C
that is discussed here.

Follow the pointers above to search via Google, and if you need more
help go to one of the Windows programming newsgroups, I'd suggest.

Feb 23 '07 #2

abhi wrote:
Hello,

I want to create a small project which will display scrolling text on
LED that will be attached to Parallel port. I want to create this
project in C language(possibly in Mingw) on Windows XP. I want to know
how can i access(read and write data) on parallel port in XP.

I have a program that do the same thing but in its documentation it
says that it will not work on Windows XP.

I want to create a GUI for this project in which we can enter the
desired Text to display on LED and Scrolling Speed.

Is this possible to create this Project in C?
The answer to your question would involve using numerous Windows
specific functions, particularly for the GUI. Please post to
comp.os.ms-windows.programmer.win32.

Feb 23 '07 #3
abhi a écrit :
Hello,

I want to create a small project which will display scrolling text on
LED that will be attached to Parallel port. I want to create this
project in C language(possibly in Mingw) on Windows XP. I want to know
how can i access(read and write data) on parallel port in XP.

I have a program that do the same thing but in its documentation it
says that it will not work on Windows XP.

I want to create a GUI for this project in which we can enter the
desired Text to display on LED and Scrolling Speed.

Is this possible to create this Project in C?
http://www.beyondlogic.org/porttalk/porttalk.htm
Feb 23 '07 #4

"abhi" <ab*******@gmail.comwrote in message
news:11*********************@s48g2000cws.googlegro ups.com...
Hello,

I want to create a small project which will display scrolling text on
LED that will be attached to Parallel port. I want to create this
project in C language(possibly in Mingw) on Windows XP. I want to know
how can i access(read and write data) on parallel port in XP.

I have a program that do the same thing but in its documentation it
says that it will not work on Windows XP.
Windows/XP stops user programs directly accessing the hardware as this can
be dangerous....
... for example if a program could intercept a print request then it could
cause output to be changed...
>
I want to create a GUI for this project in which we can enter the
desired Text to display on LED and Scrolling Speed.

Is this possible to create this Project in C?
Not in standard "C" which is the subject of this group. You will either have
to write a device driver, and for that you probably need Microsoft C, and
you certainly need the Platform SDK, or use a generic driver that provides
safe access to the printer port.
Either of these are platform specific, so you need a windows programming
group
Feb 24 '07 #5
Yes this is not a C question. It can be done using MinGw and the Windows
SDK using the CreateFile() function. For more on this you might try
microsoft.pulic.dotnet.language.vc - it is a little off-topic there to but
people there are not too hard nosed.

Regards
Chris Saunders

"David Wade" <g8***@yahoo.comwrote in message
news:C6******************************@eclipse.net. uk...
>
"abhi" <ab*******@gmail.comwrote in message
news:11*********************@s48g2000cws.googlegro ups.com...
>Hello,

I want to create a small project which will display scrolling text on
LED that will be attached to Parallel port. I want to create this
project in C language(possibly in Mingw) on Windows XP. I want to know
how can i access(read and write data) on parallel port in XP.

I have a program that do the same thing but in its documentation it
says that it will not work on Windows XP.

Windows/XP stops user programs directly accessing the hardware as this can
be dangerous....
.. for example if a program could intercept a print request then it could
cause output to be changed...
>>
I want to create a GUI for this project in which we can enter the
desired Text to display on LED and Scrolling Speed.

Is this possible to create this Project in C?

Not in standard "C" which is the subject of this group. You will either
have
to write a device driver, and for that you probably need Microsoft C, and
you certainly need the Platform SDK, or use a generic driver that provides
safe access to the printer port.
Either of these are platform specific, so you need a windows programming
group


Feb 25 '07 #6
Chris Saunders wrote: (*** and top-posted - fixed ***)
"David Wade" <g8***@yahoo.comwrote in message
>"abhi" <ab*******@gmail.comwrote in message
>>>
I want to create a small project which will display scrolling
text on LED that will be attached to Parallel port. I want to
create this project in C language(possibly in Mingw) on Windows
XP. I want to know how can i access(read and write data) on
parallel port in XP.

I have a program that do the same thing but in its documentation
it says that it will not work on Windows XP.

Windows/XP stops user programs directly accessing the hardware
as this can be dangerous....
.. for example if a program could intercept a print request then
it could cause output to be changed...
>>I want to create a GUI for this project in which we can enter the
desired Text to display on LED and Scrolling Speed.

Is this possible to create this Project in C?

Not in standard "C" which is the subject of this group. You will
either have to write a device driver, and for that you probably
need Microsoft C, and you certainly need the Platform SDK, or use
a generic driver that provides safe access to the printer port.
Either of these are platform specific, so you need a windows
programming group

Yes this is not a C question. It can be done using MinGw and the
Windows SDK using the CreateFile() function. For more on this you
might try microsoft.pulic.dotnet.language.vc - it is a little
off-topic there to but people there are not too hard nosed.
Please do not top-post. Your answer belongs after, or possibly
intermixed with, the material which you quote, after snipping
irrelevancies. This has not been snipped in order to maintain the
overall meaning. See the following links:

--
Some informative links:
<http://www.catb.org/~esr/faqs/smart-questions.html>
<http://www.caliburn.nl/topposting.html>
<http://www.netmeister.org/news/learn2quote.html>
<http://cfaj.freeshell.org/google/ (taming google)
<http://members.fortunecity.com/nnqweb/ (newusers)
Feb 25 '07 #7

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

Similar topics

4
by: Jorge Godoy | last post by:
Hi! We're doing a research project that involves controlling mini-windtrap speeds and we're reading/writing data from the parallel port. What I've found so far on a fast Google search for...
4
by: David | last post by:
I'm wondering if python is capable of fairly precise timing and also sending data out the parallel port. For example ; making a 7.5 KHz square wave come out of one of the data pins on the...
6
by: Peter | last post by:
I'm interested to know what ideas are out there for reading a parallel port at a constant sample rate while still allowing the user to interact with the GUI. That is, reading it every 10ms for...
12
by: david.brown.0 | last post by:
I'm trying to make a Java program access a parallel port. Java's comm API does not provide me with the control I need. I need to be able to write to the data and control pins and read the status...
11
by: Timothy Smith | last post by:
hello people. i've been trying to send an 8 byte string to my parallel port under freebsd. the purpose is it to control a relay board. the board simply responds to the output byte coming from...
0
by: abhi | last post by:
Hello, I want to create a small project which will display scrolling text on LED that will be attached to Parallel port. I want to create this project in C language(possibly in Mingw) on Windows...
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
3
by: Fa6om | last post by:
Hi all I need to write a program in C that reads 4 switches from the parallel port and display their status. All the program does is display: switch 1 is ON switch 2 is OFF switch 3 ... The...
4
by: Soren | last post by:
Hi, I want to control some motors using the parallel port.. however, my laptop does not have any parallel ports (very few do). What I do have is a USB->Parallel converter... I thought about...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.