home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- 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
- From: schoi@casbah.acns.nwu.edu (Scott Choi)
- Subject: COM1 port communication
- Message-ID: <1993Jan28.203747.2219@news.acns.nwu.edu>
- Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
- Nntp-Posting-Host: unseen1.acns.nwu.edu
- Organization: Northwestern University, Evanston Illinois.
- Date: Thu, 28 Jan 1993 20:37:47 GMT
- Lines: 30
-
- Greetings,
-
- I am trying to write a string size of 0x7FFF to COM1 using RTS and CTS. The
- following sequence does not do the trick since I have set some variables
- within struct DCB to activate RTS and CTS usage. Does anyone know this
- trick?
-
- idComDev = OpenComm("COM1", 1024U, 0x7FFFU);
- BuildCommDCB("COM1:9600,n,8,1", &dcb);
- dcb.CtsTimeout = 10;
- dcb.fRtsDisable = 0;
- WriteComm(idComDev, p, 0x7FFFU);
-
- By the way, OpenComm() has UINT for the transmission queue size but only works
- up to 0x7FFF!
-
- Thank you.
-
- Scott
-
-
-
-
-
-
-
-
-
-
-
-