home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5464 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.0 KB  |  42 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!schoi
  3. From: schoi@casbah.acns.nwu.edu (Scott Choi)
  4. Subject: COM1 port communication
  5. Message-ID: <1993Jan28.203747.2219@news.acns.nwu.edu>
  6. Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
  7. Nntp-Posting-Host: unseen1.acns.nwu.edu
  8. Organization: Northwestern University, Evanston Illinois.
  9. Date: Thu, 28 Jan 1993 20:37:47 GMT
  10. Lines: 30
  11.  
  12. Greetings,
  13.  
  14. I am trying to write a string size of 0x7FFF to COM1 using RTS and CTS. The
  15. following sequence does not do the trick since I have set some variables
  16. within struct DCB to activate RTS and CTS usage.  Does anyone know this
  17. trick?  
  18.  
  19. idComDev = OpenComm("COM1", 1024U, 0x7FFFU);
  20. BuildCommDCB("COM1:9600,n,8,1", &dcb); 
  21. dcb.CtsTimeout = 10;
  22. dcb.fRtsDisable = 0;
  23. WriteComm(idComDev, p, 0x7FFFU); 
  24.  
  25. By the way, OpenComm() has UINT for the transmission queue size but only works
  26. up to 0x7FFF!  
  27.  
  28. Thank you.  
  29.  
  30. Scott
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.