Article View: borland.public.cppbuilder.nativeapi
Article #14909Re: How to Interface hardware in C++ builder
From: Colin Hughes
Date: Sat, 26 Jul 2003 14:34
Date: Sat, 26 Jul 2003 14:34
55 lines
2971 bytes
2971 bytes
You cannot use NT systems for inportb and outportb in a NT Windows program. Perhap you can use inportb and outportb in NT in a consol program as the serial and paralel ports have dos imulators. You might have to use a dos compiler instead and run it in a dos box. Win 98 OK for outport in a windows program. Having Book Programing the Parallel Port Dhananjay V.Garde R&D Books ISBN 0-87930-513-4 Colin "Malcolm Smith" <mjfreelancing@optusnet.com.au> wrote: >Interfacing hardware is something I do often- although I've never had to >worry about parallel ports. > >1. What OS are you using ? If NT/2000 you will need a device driver to get >access to the port. They are available off the web. I have never used >http://www.winsoft.sk/ioport.htm but have been told it is good. > >2. As for the hardware you need to determine if there is a protocol offered >by the manufacturer, or better still, if they have an existing interface >(such as a DLL) that you can use directly. > >-- >Malcolm Smith >MJ Freelancing- http://www.mjfreelancing.com >Software Protection for C++Builder >Borland Technology Partner > > >"Umar Kazi" <umarkazi@yahoo.com> wrote in message >news:3f1a8909$1@newsgroups.borland.com... >> >> I am currently working on a project which is "sensor guided car >> parking system".This project invloves interfacing of an optical encoder >and a ultrasonic sensor with personal computer through >> external interface card.Parallel port of computer has to be used for >interfacing.Could you please help me in this regard.If you could please tell >me how to read Input port in C++ Builder 4 or how to interface external >hardware with computer using C++ builder.I will be much obliged on your >responce. >> Thanking you in anticipation >> Kind Regards >> Umar.S.Kazi >> > >
Technical Details
Message-ID:
<3f229163$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f1a8909$1@newsgroups.borland.com> <3f1a8cb1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,85cebf9f9673bd74 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-26 07:36:41 PST From: "Colin Hughes" <colin.hughes@dds.delphiauto.com> Sender: "Colin Hughes" <colin.hughes@dds.delphiauto.com> Reply-To: "Colin Hughes" <colin.hughes@dds.delphiauto.com> Subject: Re: How to Interface hardware in C++ builder Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 80.225.53.103 80.225.53.103 References: <3f1a8909$1@newsgroups.borland.com> <3f1a8cb1$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3f229163$1@newsgroups.borland.com> Date: 26 Jul 2003 07:34:11 -0700 X-Trace: newsgroups.borland.com 1059230051 207.105.83.65 (26 Jul 2003 07:34:11 -0700) Lines: 56 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail