Article View: borland.public.cppbuilder.nativeapi
Article #8264Re: Parallel and Serial Ports
From: Jim Dodd
Date: Mon, 08 Nov 2004 13:44
Date: Mon, 08 Nov 2004 13:44
34 lines
2268 bytes
2268 bytes
Andrew McIsaac wrote: > Hi, > I'm using BCB5 Pro, Win XP. > My question may be simple compared to what people are doing, > What I am having difficulties with is finding how to: > read / write values ie bits on the pins to the parallel ports > or be able to read the serial port. > I believe it has something to do with CreateFile ? > > Thanks In Advance > Andrew > > > Can someone show me the way, or if know of a good example on the net. If you want to read and write individual lines of the parallel port, look at the TVicLPT component http://www.entechtaiwan.com/tviclpt.htm It gives you complete control (including an LPT interrupt event) over the parallel port. You can treat the port as a parallel port or a printer port (reading and writing a byte at a time with control lines) or as individual pins to set high or low or read their input state. There is a free version to try out and it's inexpensive to buy. It will even find parallel ports installed at the high addresses that the PCI bus and later versions ofWindows insist on (in addition to parallel ports installed in the old DOS locations of 278, 378 and 3BC hex). Regards, Jim Dodd Onset Computer Corp.
Technical Details
Message-ID:
<418f783e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<418c6621$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ee8d894d31a9c473 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 08 Nov 2004 08:44:30 -0500 From: Jim Dodd <bcbuilderboy@yahoo.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Parallel and Serial Ports References: <418c6621$1@newsgroups.borland.com> In-Reply-To: <418c6621$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.75.243.228 Message-ID: <418f783e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099921470 24.75.243.228 (8 Nov 2004 05:44:30 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail