🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: communicating with seial ports

#646
From: Bob Gonder
Date: Wed, 13 Feb 2008 16:18
16 lines
1589 bytes
Maurice wrote:

>I like to communicate via serial port (com2 for ex.), I like to set up the 
>baud rate, data format, etc.... and just sending and receiving single 
>characters. the old "bioscom" seems not supported anymore, is there a simple 
>way to do that??

CreateFile() is used to open com ports.
See the "Communications Resources" heading in the help for CreateFile.

DCB structs are used to get/set com port settings.

ReadFile() is used to read data from the port.
WriteFile() writes data to the port.

Also see the help topic "Communications"
Technical Details
Message-ID: <qm56r3hk1di3b2mgir32us630tbrh7r4j0@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <47b2ff73@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a5f91c33fd307b9f
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: communicating with seial ports
Date: Wed, 13 Feb 2008 08:18:33 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <qm56r3hk1di3b2mgir32us630tbrh7r4j0@4ax.com>
References: <47b2ff73@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: 67.77.145.138
X-Trace: newsgroups.borland.com 1202919511 67.77.145.138 (13 Feb 2008 08:18:31 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1445