Com Port

Started by
1 comment, last by Shannon Barber 23 years, 5 months ago
What''s the easiest way to open up a com port and spit some text out it? HANDLE hComFile; CreateFile("Com1",... SetCommDCB (or whatever) is their a way with less stuff? Like an OpenComm(1, 9600, 8, 0, noparity); ?
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
quote:
FILE *fp = fopen("COM1");


If that doesn't work try this:

quote:
FILE *fp = fopen("COM1:");


At least I think that would work as it is possible to redirect stuff to COMx: in the shell in Windows...

Edited by - Muzzafarath on November 28, 2000 3:24:47 AM
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
I thought about that, but then how do you set the speed/parity/stop ?
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement