Board index » Visual Studio » Serial Driver Code in C++
|
ncontorno
|
|
ncontorno
|
Serial Driver Code in C++
Visual Studio383
I am trying to send a string over serial RS-232 to another computer and wanted to use VC++. Is there some sample code/template I could follow ? It is not very complicated... just somethign that opens the port and writes into it.... and closes the port. Thanks -k - |
| r
Registered User |
Thu Aug 14 07:45:51 CDT 2003
Re:Serial Driver Code in C++
On Wed, 13 Aug 2003 21:16:46 -0700, "KP" <drkcp@yahoo.com>wrote:
QuoteI am trying to send a string over serial RS-232 to another time. Use CreateFile() to open the port, WriteFile() to write, and CloseHandle() to close. To change baud rate, parity, and stuff, use SetCommState(). Your documentation will have information on how to use these functions. Particularly read the help file stuff on using CreateFile with communations resources. - |
| CheckAbdoul
Registered User |
Thu Aug 14 09:38:12 CDT 2003
Re:Serial Driver Code in C++
Take a look at naughter's CSerialPort class.
www.naughter.com/serialport.html">www.naughter.com/serialport.html -- Cheers Check Abdoul [ VC++ MVP ] ----------------------------------- "KP" <drkcp@yahoo.com>wrote in message QuoteI am trying to send a string over serial RS-232 to another - |
| KP
Registered User |
Thu Aug 14 10:30:55 CDT 2003
Re:Serial Driver Code in C++
Thanks.. it was very helpful
Quote-----Original Message----- |
