Connecting Tech Pros Worldwide Forums | Help | Site Map

controlling pins on lpt

eson
Guest
 
Posts: n/a
#1: Jul 22 '05
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

Mark
Guest
 
Posts: n/a
#2: Jul 22 '05

re: controlling pins on lpt


On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
[color=blue]
>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.
>[/color]

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/ ]

osmium
Guest
 
Posts: n/a
#3: Jul 22 '05

re: controlling pins on lpt


eson writes:
[color=blue]
> 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.[/color]

Try this:

http://www.lvr.com/parport.htm


eson
Guest
 
Posts: n/a
#4: Jul 22 '05

re: controlling pins on lpt


Mark wrote:
[color=blue]
> On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
>[color=green]
> >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.
> >[/color]
>
> I'm afraid you're in the wrong newsgroup. C++ specific issues is the
> intent at comp.lang.c++
>
> Mark
>[/color]

but i would like to do it through c++ program ...
JKop
Guest
 
Posts: n/a
#5: Jul 22 '05

re: controlling pins on lpt


eson posted:
[color=blue]
> hi
>
> i would like to make some software for steering devices[/color]
through lpt port[color=blue]
> therefore i need to know who to control pins on the lpt[/color]
port and how to[color=blue]
> gain direct access to them. Shortly speaking I need to be[/color]
able to set[color=blue]
> ones or zeros on the pins.
>
> I would be glad if someone could help in finding proper[/color]
functions to[color=blue]
> obtain such a control or maybe some materials about it.
>
> thank you
> eson[/color]

Depends on the CPU, the hardware, the OS.

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

OpenFileEx
DeviceIoControl

-JKop
Chris Gordon-Smith
Guest
 
Posts: n/a
#6: Jul 22 '05

re: controlling pins on lpt


eson wrote:
[color=blue]
> Mark wrote:
>[color=green]
>> On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
>>[color=darkred]
>> >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.
>> >[/color]
>>
>> I'm afraid you're in the wrong newsgroup. C++ specific issues is the
>> intent at comp.lang.c++
>>
>> Mark
>>[/color]
>
> but i would like to do it through c++ program ...[/color]

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
Ioannis Vranos
Guest
 
Posts: n/a
#7: Jul 22 '05

re: controlling pins on lpt


eson wrote:[color=blue]
> 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[/color]



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
Closed Thread


Similar C / C++ bytes