Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can i send data to serial port in visual studio C++
Posted
Comments
enhzflep 3-Aug-13 3:40am    
By opening the serial port with fopen or CreateFile, followed by writing data to the 'file'
Google will happily fill in the details, if you ask it!
Patrice T 6-Sep-15 10:51am    
Look at documentation.
Google is your friend.

 
Share this answer
 
Comments
noumanahmed90 3-Aug-13 6:18am    
So complex plz tell me easy way
H.Brydon 3-Aug-13 10:17am    
You are probably not going to get much help from here on in. You have wandered into the realm of the stupid question.
noumanahmed90 3-Aug-13 6:21am    
i am not expert!
Philippe Mori 4-Aug-13 19:45pm    
If you don't want to read the documentation, you won't become an expert. In C++, you have to learn a lot to do things like that. You should start from a sample that is somewhat similar to what you want to do and once you are able to communicate, improve the program until it works like you want.

For any serious application, you also need to learn multithreading so that the application stay responsive while communicating with the device.
I would start reading the documentation[^].
 
Share this answer
 
Comments
noumanahmed90 3-Aug-13 6:22am    
how can i do it in visual C++

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900