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

controlling pins on lpt

hi

i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.

thank you
eson
Jul 22 '05 #1
6 3866
On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
hi

i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.


I'm afraid you're in the wrong newsgroup. C++ specific issues is the
intent at comp.lang.c++

Mark
--
[ C++ FAQ: http://www.parashift.com/c++-faq-lite/ ]

Jul 22 '05 #2
eson writes:
i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.


Try this:

http://www.lvr.com/parport.htm
Jul 22 '05 #3
Mark wrote:
On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
hi

i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.


I'm afraid you're in the wrong newsgroup. C++ specific issues is the
intent at comp.lang.c++

Mark


but i would like to do it through c++ program ...
Jul 22 '05 #4
eson posted:
hi

i would like to make some software for steering devices through lpt port therefore i need to know who to control pins on the lpt port and how to gain direct access to them. Shortly speaking I need to be able to set ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to obtain such a control or maybe some materials about it.

thank you
eson


Depends on the CPU, the hardware, the OS.

For WinXP on an Intel Pentium Family PC, you want the
Win32API functions:

OpenFileEx
DeviceIoControl

-JKop
Jul 22 '05 #5
eson wrote:
Mark wrote:
On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
>hi
>
>i would like to make some software for steering devices through lpt port
>therefore i need to know who to control pins on the lpt port and how to
>gain direct access to them. Shortly speaking I need to be able to set
>ones or zeros on the pins.
>
>I would be glad if someone could help in finding proper functions to
>obtain such a control or maybe some materials about it.
>


I'm afraid you're in the wrong newsgroup. C++ specific issues is the
intent at comp.lang.c++

Mark


but i would like to do it through c++ program ...


Your question relates to a particular device and how to control it. It is
not about the C++ language. Your question, interesting though it is, is
therefore off topic for this newsgroup. I think the concensus on the
newsgroup is that discussion should be kept strictly within the bounds of
the topic as defined by the FAQ.

This may seem irritating, and my view is that sometimes people are too keen
to rule subjects off topic. However, I believe the rationale is that if we
start discussing topics like the lpt port, next we'll be discussing the
Windows API and other operating system specific issues, and before you know
it discussion of the C++ language itself will be completely swamped.
--
Chris Gordon-Smith
London
Homthink epage: http://graffiti.virgin.net/c.gordon-smith/
Email Address: Please see my Home Page
Jul 22 '05 #6
eson wrote:
hi

i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.

thank you
eson


The topic of this newsgroup is ISO C++. Your subject is system-dependent
stuff so it is off topic here. You must find some API specific group,
for example if you are talking about how to do this in a Windows
environment, a Win32 specific group, or MFC, etc.


Regards,

Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #7

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

Similar topics

1
by: EN | last post by:
Hi, I'm trying to send 8 bits to the lpt port. I'd like to use VB 6.0. Can this be done? VB can send data to a printer, but can it go as low as actually sending bits? I think VB can only send...
2
by: Jose | last post by:
Hello: I'm trying to use a serial port to activate a leds panel playing three lines. I decided to do this way: one to send the data (RTS), another one to use it as a data clock (DTR) and another...
2
by: Amjad | last post by:
I want to control the output of all 9 pins of the serial port on my PC during serial communication sessions. I know how to transmit and recieve data (Pins 2 and 3) using the MSComm. But I still...
2
by: Wouter van Teijlingen | last post by:
Dear Readers, I was reading about how to control the COM and LPT port using VB .NET. I've found a lot of information, and it was very useful to me. I found an example program on the site of...
13
by: jay.dow | last post by:
I want to write to the pins of an RS232 without using the serial protocol. The use would be every pin could act to complete a circuit in customized hardware. I could use python to communicate...
0
by: Piotrekk | last post by:
Hi My question is: How to conrol output pins of ( for example ) COM1 I found in .net System.IO.Ports.SerialPort class. Is there any posibility to set or not set pins D0-7? Thanks PK
14
by: Bobus | last post by:
Hi, I have a table which contains a bunch of prepaid PINs. What is the best way to fetch a unique pin from the table in a high-traffic environment with lots of concurrent requests? For...
1
by: AMP | last post by:
Hello, I'd like to know how to access(apply a voltage) to individual pins in a serial port using c#. Thanks Mike
0
by: JNL via DotNetMonster.com | last post by:
hi guys! i need help on how to read signals from pins 10 and 12 of the parallel port do i need to add a reference or a COM component to read signals from the pins? all i need to do is get a...
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
tracyyun
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...
0
agi2029
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.