home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6582 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  851 b 

  1. From: John.Cocula@f347.n109.z1.fidonet.org (John Cocula)
  2. Sender: Uucp@blkcat.UUCP
  3. Path: sparky!uunet!blkcat!Uucp
  4. Newsgroups: comp.os.os2.programmer
  5. Subject: Re: ASK: How to send a c
  6. Message-ID: <721598425.AA00000@blkcat.UUCP>
  7. Date: Thu, 12 Nov 1992 11:53:02 -0500
  8. Lines: 17
  9.  
  10. In a message to All <11-11-92 21:13>, tranx writes:
  11.  
  12.  tA> A: I tried to write a program to communicate with my instrument through
  13.  tA>    a serial port(eg. COM1). I have C Set/ 2 and Work Frame but I couldn't
  14.  tA>    find a system call that allows me to "open COM1: for example" and
  15.  tA> return
  16.  tA>    a handle. So that I can use this handle to send a character to this
  17.  tA> serial
  18.  tA>    port. Would you like to help me out?
  19.  
  20. Use the DosOpen call with a "file" name of "COM1".
  21. You can also issue DosDevIOCtl calls to set baud rate, parity,
  22. etc.
  23.  
  24.   
  25. ___  
  26.  * PMQWK 1.00b5 *
  27.