🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6614

BC++ & Serial IO - is there an easy way?

#6614
From: Matt Ranney
Date: Sat, 21 Nov 1992 22:04
15 lines
1159 bytes
I'm using BC++ 3.1, and I'm trying to write a program that does some
simple serial IO at 9600 baud on COM1.  I typed in the bioscom example
from the book, but that doesn't work.  Every time it goes to send a
character, the machine hangs for like 2 seconds, and it never thinks
there is any data waiting to be read.  It does this on every machine
I've tried it on, although they are all the same kind of machine:
386sx's.  Has anybody else had this problem?

Also, is this the only way to talk to the serial port?  It seems
rather foolish that C++ with its derived iostream classes would still
require you to use these BIOS calls.
--
Matt Ranney -  mjr@calvin.edu
  "You know, I don't think theres a man, woman, or child alive today
   who doesn't enjoy a lovely beverage."  -DL
Technical Details
Message-ID: <mjr.722383467@ursa>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!gumby!ursa!ursa!mjr

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!gumby!ursa!ursa!mjr
From: mjr@ursa.calvin.edu (Matt Ranney)
Subject: BC++ & Serial IO - is there an easy way?
Message-ID: <mjr.722383467@ursa>
Sender: news@calvin.edu
Organization: Calvin College
Date: Sat, 21 Nov 1992 22:04:27 GMT
Lines: 15