Parallel Port

T

Tim Mulholland

All,
I'm aware that there are no built-in methods in the Framework for accessing
the parallel port. So i'm just looking for the best method (which i'm
assuming will involve using Interop).
I'm trying to create a very simple application that will allow me to set
(and hold) certain pins on the parallel port to be high/low based on user
input. Nothing fancy here.
Whats the quickest/most reliable option here?

Thanks in advance,

-Tim
 
S

Steven Cheng[MSFT]

Hi Tim,

Thanks for your posting. As for the parallel or other raw hardware I/O
programming, it's hard to say what's the best means but generally seems the
only way is to use interop to call the raw apis. Here're some tech articles
I've found , maybe help to you:

#HOW TO: Access Serial Ports and Parallel Ports by Using Microsoft Visual
Basic .NET
http://support.microsoft.com/?id=823179

#I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with
Parallel Port
http://www.codeproject.com/csharp/csppleds.asp

#Control Electrical Appliances using PC
http://www.codeproject.com/csharp/Control_e_appliances.asp


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
D

Dick Grier

Hi,

You can download IO.Net from my homepage. It is a .NET wrapper for a device
driver that allows direct access to IO ports, including those used by the
printer port.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top