home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10829 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.1 KB  |  26 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!gumby!ursa!ursa!mjr
  3. From: mjr@ursa.calvin.edu (Matt Ranney)
  4. Subject: BC++ & Serial IO - is there an easy way?
  5. Message-ID: <mjr.722383467@ursa>
  6. Sender: news@calvin.edu
  7. Organization: Calvin College
  8. Date: Sat, 21 Nov 1992 22:04:27 GMT
  9. Lines: 15
  10.  
  11. I'm using BC++ 3.1, and I'm trying to write a program that does some
  12. simple serial IO at 9600 baud on COM1.  I typed in the bioscom example
  13. from the book, but that doesn't work.  Every time it goes to send a
  14. character, the machine hangs for like 2 seconds, and it never thinks
  15. there is any data waiting to be read.  It does this on every machine
  16. I've tried it on, although they are all the same kind of machine:
  17. 386sx's.  Has anybody else had this problem?
  18.  
  19. Also, is this the only way to talk to the serial port?  It seems
  20. rather foolish that C++ with its derived iostream classes would still
  21. require you to use these BIOS calls.
  22. --
  23. Matt Ranney -  mjr@calvin.edu
  24.   "You know, I don't think theres a man, woman, or child alive today
  25.    who doesn't enjoy a lovely beverage."  -DL
  26.