Article View: comp.windows.ms.programmer
Article #3527Re: Programming COM/LPT ports under Windows
From: Karl Schultz
Date: Thu, 25 Apr 1996 00:00
Date: Thu, 25 Apr 1996 00:00
32 lines
2359 bytes
2359 bytes
Xvosil Rained wrote: > > Hello. > I have a question for MS Windows programming experts. > So, the question is: > "Is it possible to operate on the API level > with COM and LPT ports under Windows?" There is a group of about a dozen functions in the Win API that handle the COM and LPT ports. > My motivation is: I've got a device with a specific > communication interface and I need to create a Windows > application which will be able to control this device by > means of COM or LPT port. Yup, you can do this. For example, Windows applications exist that are used to program ham radios by sending frequency data over a COM port through a wire that is plugged into the radio. > In the other terms, I need to set and check zero/one voltage > levels on a concrete port pin over a constant time interval. I don't know what a concrete port pin is, but you can read the state of certain status bits on the COM port to detect levels on the DTR line, etc. Now I have a question: Does anyone know of any freely available source code that implements a C++ class for COM ports?
Technical Details
Message-ID:
<317FEAC8.4B7A@fc.hp.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4l5rl4$q9@kadri.ut.ee>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113dfb,765c5593a5f635ee X-Google-Attributes: gid113dfb,public X-Google-Thread: f6ef4,765c5593a5f635ee X-Google-Attributes: gidf6ef4,public X-Google-Thread: 105df1,765c5593a5f635ee X-Google-Attributes: gid105df1,public X-Google-Thread: f7033,765c5593a5f635ee X-Google-Attributes: gidf7033,public X-Google-Thread: 102af1,765c5593a5f635ee X-Google-Attributes: gid102af1,public X-Google-Thread: 11100c,765c5593a5f635ee X-Google-Attributes: gid11100c,public X-Google-Thread: f801d,765c5593a5f635ee X-Google-Attributes: gidf801d,public From: Karl Schultz <kws@fc.hp.com> Subject: Re: Programming COM/LPT ports under Windows Date: 1996/04/25 Message-ID: <317FEAC8.4B7A@fc.hp.com> X-Deja-AN: 151433490 references: <4l5rl4$q9@kadri.ut.ee> content-type: text/plain; charset=us-ascii organization: Hewlett-Packard mime-version: 1.0 newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.win32,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.controls,relcom.comp.os.windows.prog,comp.os.ms-windows.programmer.tools.misc,relcom.comp.os.windows.prog,fido.ger.windows.prog x-mailer: Mozilla 2.01 (X11; I; HP-UX A.09.05 9000/715)