🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4742

Re: # Send Data to COM

#4742
From: Bob Gonder
Date: Mon, 28 Nov 2005 21:22
13 lines
1343 bytes
Pedram wrote:

>I have a hardware that is accepting these data and I test it by Windows
>Hyper Terminal,
>now I want to write the software for myself.

What is it that you need to know?

Use CreateFile() to open a COM port.

Look in the help for DCB and GetCommState() and SetCommState()

Use ReadFile and WriteFile to read/write to the COM port.
Technical Details
Message-ID: <k3tmo1lqum0cd2kc3ia6a2tr5gcnd8oea9@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rtcomm.ru!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <438b18ee@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eed65ef52aa9d642
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: # Send Data to COM
Date: Mon, 28 Nov 2005 13:22:31 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <k3tmo1lqum0cd2kc3ia6a2tr5gcnd8oea9@4ax.com>
References: <438b18ee@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.49.215.160
X-Trace: newsgroups.borland.com 1133212910 71.49.215.160 (28 Nov 2005 13:21:50 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rtcomm.ru!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail