Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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

GeneralRE: RS485 communication Pin
Anonymous21-Dec-99 11:58
suss Anonymous21-Dec-99 11:58 
GeneralRE: RS485 communication Pin
Anonymous24-Dec-99 11:37
suss Anonymous24-Dec-99 11:37 
GeneralRE: RS485 communication Pin
Anonymous29-Dec-99 8:18
suss Anonymous29-Dec-99 8:18 
GeneralSHAppBarMessage Wrapper Pin
John Mancini17-Dec-99 17:24
John Mancini17-Dec-99 17:24 
GeneralRE: SHAppBarMessage Wrapper Pin
Shaun Wilde20-Dec-99 1:41
Shaun Wilde20-Dec-99 1:41 
GeneralRE: SHAppBarMessage Wrapper Pin
Andrei Zenkovitch20-Dec-99 4:32
Andrei Zenkovitch20-Dec-99 4:32 
Generalmontior browser activity Pin
SAWilde16-Dec-99 1:21
SAWilde16-Dec-99 1:21 
GeneralRE: montior browser activity Pin
Erik Thompson16-Dec-99 12:09
sitebuilderErik Thompson16-Dec-99 12:09 
QuestionHow do I use stl in a static lib? Pin
Brad Figg15-Dec-99 6:50
sussBrad Figg15-Dec-99 6:50 
AnswerRE: How do I use stl in a static lib? Pin
Jesse Ezell15-Dec-99 10:01
Jesse Ezell15-Dec-99 10:01 
GeneralRE: RE: How do I use stl in a static lib? Pin
Anonymous15-Dec-99 10:03
suss Anonymous15-Dec-99 10:03 
GeneralRE: RE: How do I use stl in a static lib? Pin
Brad Figg20-Dec-99 4:58
suss Brad Figg20-Dec-99 4:58 
AnswerRE: How do I use stl in a static lib? Pin
Member 105416-Dec-99 1:35
Member 105416-Dec-99 1:35 
GeneralC++ Development Time Tracking Pin
Mark C. Malburg14-Dec-99 1:50
Mark C. Malburg14-Dec-99 1:50 
GeneralRE: C++ Development Time Tracking Pin
Jesse Ezell14-Dec-99 14:46
Jesse Ezell14-Dec-99 14:46 
GeneralRE: RE: C++ Development Time Tracking Pin
Dmitriy15-Dec-99 3:21
Dmitriy15-Dec-99 3:21 
GeneralRE: RE: RE: C++ Development Time Tracking Pin
Jesse Ezell15-Dec-99 5:53
Jesse Ezell15-Dec-99 5:53 

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.