Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / July 2003

Tip: Looking for answers? Try searching our database.

Parallel port interfacing with C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shahram Ahmadinejad - 09 Jul 2003 09:51 GMT
I'm working on a project called controlling devices
over internet. The hardware intefacing part is to be
done through parallel port. The whole project have
been done using C# of .Net platform. My problem is
that I don't know what's the class that I can use to
communicate with parallel port and send a byte
corresponding to command I want to give out to device
connected to it. I don't want to use old system dll
files that might make my code unamanged and out of
.Net framework. I  want to know the way I can have it
done in c#.

I'll be so thankful if you help me.
Thanks in advance,
Shahram.
Thomas Scheidegger [MVP] - 09 Jul 2003 22:30 GMT
.NET 1.0/1.1 has no support for legacy ports (COM/LPT)
You have to use PInvoke or Interop...

If the attached device follows printer hand-shaking protocols:
 HOW TO: Send Raw Data to a Printer by Using Visual C# .NET :
   http://support.microsoft.com/?kbid=322091

If you want to control the port pins:
You have to install some kind of hardware drivers!
(Warning: will impact system security/reliability)

[NOTE: this is a restriction of the OS, not of .NET]

commercial, specific for printer ports, e.g.:
  http://www.zealsoftstudio.com/ntport/download.html
  http://www.ntport.com/
 for .NET : generic IO
   http://www.winsoft.sk/nioport.htm

C++/Win32
  http://www.logix4u.cjb.net/
  http://www.entechtaiwan.com/tviclpt.htm
  http://www.internals.com/

For more information about ports, check this sites:
 http://www.lvr.com/parport.htm
 http://www.beyondlogic.org

for Interop, please use newsgroup:
  microsoft.public.dotnet.framework.interop

Signature

Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.