Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRE: RE: RE: RE: Register Class in a Dialog Based Application Pin
Member 8106-Jan-00 1:55
Member 8106-Jan-00 1:55 
GeneralI need table convert color string to RGB in HTML Pin
Kobe24-Dec-99 7:31
Kobe24-Dec-99 7:31 
QuestionFont size problem ??? Pin
Kobe24-Dec-99 0:10
Kobe24-Dec-99 0:10 
AnswerRE: Font size problem ??? Pin
Alex Gorev3-Jan-00 4:57
Alex Gorev3-Jan-00 4:57 
AnswerRE: Font size problem ??? Pin
Andrei Zenkovitch3-Jan-00 8:15
Andrei Zenkovitch3-Jan-00 8:15 
AnswerRE: Font size problem ??? Pin
Tom Hunter5-Jan-00 1:38
Tom Hunter5-Jan-00 1:38 
GeneralRegisterWindowsMessage Pin
Member 351722-Dec-99 16:05
Member 351722-Dec-99 16:05 
GeneralRE: RegisterWindowsMessage Pin
Sadhu23-Dec-99 2:29
Sadhu23-Dec-99 2:29 
GeneralRE: RegisterWindowsMessage Pin
Mike Dunn24-Dec-99 5:12
Mike Dunn24-Dec-99 5:12 
GeneralWho had focus. Any high level suggestion would be helpful. Pin
Phil McGahan20-Dec-99 15:16
Phil McGahan20-Dec-99 15:16 
GeneralRE: Who had focus. Any high level suggestion would be helpful. Pin
Member 40421-Dec-99 12:33
Member 40421-Dec-99 12:33 
QuestionHow to send data with method POST in cgi ??? Pin
Kobe20-Dec-99 2:23
Kobe20-Dec-99 2:23 
AnswerRE: How to send data with method POST in cgi ??? Pin
Ghazi20-Dec-99 3:59
Ghazi20-Dec-99 3:59 
AnswerRE: How to send data with method POST in cgi ??? Pin
Ghazi20-Dec-99 4:07
Ghazi20-Dec-99 4:07 
GeneralRE: RE: How to send data with method POST in cgi ??? Pin
Kobe20-Dec-99 5:23
Kobe20-Dec-99 5:23 
AnswerRE: How to send data with method POST in cgi ??? Pin
RAJIV25-Dec-99 14:53
RAJIV25-Dec-99 14:53 
QuestionHow to know that file .gif is animated or not ??? Pin
Kobe20-Dec-99 1:46
Kobe20-Dec-99 1:46 
AnswerRE: How to know that file .gif is animated or not ??? Pin
Cristi Posea20-Dec-99 4:46
Cristi Posea20-Dec-99 4:46 
AnswerRE: How to know that file .gif is animated or not ??? Pin
Anonymous20-Dec-99 13:19
suss Anonymous20-Dec-99 13:19 
Generaltapi Pin
Member 453419-Dec-99 22:44
Member 453419-Dec-99 22:44 
GeneralRE: tapi Pin
Anonymous22-Dec-99 10:38
suss Anonymous22-Dec-99 10:38 
Generalread jpg Pin
roni19-Dec-99 0:35
roni19-Dec-99 0:35 
GeneralRE: read jpg Pin
Dmitriy20-Dec-99 14:57
Dmitriy20-Dec-99 14:57 
GeneralRS485 communication Pin
Petr Stejskal18-Dec-99 7:40
Petr Stejskal18-Dec-99 7:40 
GeneralRE: RS485 communication Pin
Henk Devos21-Dec-99 9:26
Henk Devos21-Dec-99 9:26 
RS-485 communication is actually exactly the same as RS-232 communication. Only the hardware is a bit different.
In WIN32, this is fairly easy. You use the COM port just like a file. You open the port with CreateFile and supply e.g. "COM2" as the filename.
You have to call SetCommTimeouts to specify the timeout values and SetCommState to specify baudrate, parity and the like. The you just call ReadFile and WriteFile for your communications and CloseHandle when you're finished.
When using RS-485, you will likely use the DTR/RTS mechanism. You can change the state of these lines by calling EscapeCommFunction.

==================
The original message was:

Is there somebody who has communicated with
serial port (RS485).
Any example would be great.
Thanks

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.