Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,836 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,711 people online right now. Registration is fast and FREE... Join Now!




Reading from serial ports using C++

 
Reply to this topicStart new topic

Reading from serial ports using C++

Pitufo
3 Oct, 2008 - 07:43 AM
Post #1

New D.I.C Head
*

Joined: 23 Jul, 2008
Posts: 25

Hi does anyone here know how to read from a serial port using c++?

I just got this got from the internet but it doesnt work:

CSerial serial;
if (serial.Open(2, 9600))
AfxMessageBox("Port opened successfully");
else
AfxMessageBox("Failed to open port!");
User is offlineProfile CardPM
+Quote Post

realNoName
RE: Reading From Serial Ports Using C++
3 Oct, 2008 - 11:39 AM
Post #2

D.I.C Regular
***

Joined: 4 Dec, 2006
Posts: 299



Thanked: 5 times
My Contributions
did you include the CSerial class?
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 04:07PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month