Serial Port Communications with C++?
SRLM
Posts: 5,045
I'm looking for a C++ class (or package) that allows the program to open and use a serial port for Windows XP. I've searched on the internet for something suitable, but nothing seems to work. Most won't even compile for me. I know how to program in C++, but I'm not familiar with the whole Microsoft system at the code level. I'll be using this to communicate via Prop-Plug to a Propeller.
Ideally, the package can be used just like file I/O without too much hassle. In addition, it must be C++. I'm looking for something that isn't in Visual C++ or Borland or tied to any other IDE.
Does anybody have any solutions that have worked for them and that they're willing to share?
Post Edited (SRLM) : 7/1/2009 10:39:20 PM GMT
Ideally, the package can be used just like file I/O without too much hassle. In addition, it must be C++. I'm looking for something that isn't in Visual C++ or Borland or tied to any other IDE.
Does anybody have any solutions that have worked for them and that they're willing to share?
Post Edited (SRLM) : 7/1/2009 10:39:20 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://msdn.microsoft.com/en-us/library/ms810467.aspx
http://msdn.microsoft.com/en-us/library/ms894943.aspx
http://msdn.microsoft.com/en-us/library/aa932472.aspx
tons more on MSDN
Why can't you use VC++ ?· There's a free version.
GNU C++ on linux has a fair amount of this as well.
In ether case, just take the sample code and plop it in ... don't worry about all the bells and whistles an IDE does.·
hth
- H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (CounterRotatingProps) : 7/1/2009 10:52:23 PM GMT
http://c-programming.suite101.com/article.cfm/reading_a_serial_port_using_windows
Jeff T.